Commit a97f81ff authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

advpack/tests: Avoid test failures without high access rights.

parent 9716c1b5
TESTDLL = advpack.dll
IMPORTS = cabinet advapi32
IMPORTS = cabinet advapi32 advpack
C_SRCS = \
advpack.c \
......
......@@ -259,6 +259,12 @@ START_TEST(install)
if (!init_function_pointers())
return;
if (!IsNTAdmin(0, NULL))
{
skip("Most tests need admin rights\n");
return;
}
GetCurrentDirectoryA(MAX_PATH, prev_path);
GetTempPath(MAX_PATH, temp_path);
SetCurrentDirectoryA(temp_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