Commit 53b7a363 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

setupapi/tests: Skip InstallHinfSection tests if the user doesn't have admin rights.

parent 0e3a0e13
......@@ -455,6 +455,14 @@ static void test_profile_items(void)
goto cleanup;
}
snprintf(path, MAX_PATH, "%s\\TestDir", commonprogs);
if (!CreateDirectoryA(path, NULL) && GetLastError() == ERROR_ACCESS_DENIED)
{
skip("need admin rights\n");
return;
}
RemoveDirectoryA(path);
create_inf_file(inffile, inf);
sprintf(path, "%s\\%s", CURR_DIR, inffile);
run_cmdline("DefaultInstall", 128, path);
......
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