advpack/tests: Skip inf install tests if the user doesn't have admin rights.
Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3af89f1d96
commit
ea7c86a715
|
@ -424,6 +424,12 @@ static void translateinfstringex_test(void)
|
|||
|
||||
/* open the inf with the install section */
|
||||
hr = pOpenINFEngine(inf_file, "section", 0, &hinf, NULL);
|
||||
if (hr == E_FAIL)
|
||||
{
|
||||
skip("can't open engine with install section (needs admin rights)\n");
|
||||
DeleteFileA(inf_file);
|
||||
return;
|
||||
}
|
||||
ok(hr == S_OK, "Expected S_OK, got %08x\n", hr);
|
||||
|
||||
/* translate the string with the install section specified */
|
||||
|
|
Loading…
Reference in New Issue