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>
oldstable
Zebediah Figura 2017-12-22 09:43:12 -06:00 committed by Alexandre Julliard
parent 72052ca6c7
commit 0875bf8974
1 changed files with 6 additions and 0 deletions

View File

@ -3635,6 +3635,12 @@ START_TEST(regedit)
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_unicode();
test_basic_import_31();