regedit/tests: Skip tests if running as non-elevated admin.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
72052ca6c7
commit
0875bf8974
|
@ -3635,6 +3635,12 @@ START_TEST(regedit)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!run_regedit_exe("regedit.exe /s test.reg") && GetLastError() == ERROR_ELEVATION_REQUIRED)
|
||||||
|
{
|
||||||
|
win_skip("User is a non-elevated admin; skipping regedit tests.\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
test_basic_import();
|
test_basic_import();
|
||||||
test_basic_import_unicode();
|
test_basic_import_unicode();
|
||||||
test_basic_import_31();
|
test_basic_import_31();
|
||||||
|
|
Loading…
Reference in New Issue