advpack/tests: Avoid test failures without high access rights.
This commit is contained in:
parent
9716c1b50c
commit
a97f81ff32
|
@ -1,5 +1,5 @@
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue