Commit ea7c86a7 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

advpack/tests: Skip inf install tests if the user doesn't have admin rights.

parent 3af89f1d
......@@ -337,7 +337,7 @@ static void translateinfstringex_test(void)
}
create_inf_file();
/* need to see if there are any flags */
/* try a NULL filename */
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment