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

This commit is contained in:
Detlef Riekenberg 2012-08-05 15:55:20 +02:00 committed by Alexandre Julliard
parent 9716c1b50c
commit a97f81ff32
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,5 @@
TESTDLL = advpack.dll
IMPORTS = cabinet advapi32
IMPORTS = cabinet advapi32 advpack
C_SRCS = \
advpack.c \

View File

@ -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);