Zebediah Figura : advapi32/tests: Skip tests modifying HKLM if limited.
Module: wine Branch: master Commit: 0c5381c6ce10e4baac2a863c39c884f7b85d228e URL: https://source.winehq.org/git/wine.git/?a=commit;h=0c5381c6ce10e4baac2a863c3... Author: Zebediah Figura <z.figura12(a)gmail.com> Date: Tue Jan 2 00:34:35 2018 -0600 advapi32/tests: Skip tests modifying HKLM if limited. Signed-off-by: Zebediah Figura <z.figura12(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/advapi32/tests/registry.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/advapi32/tests/registry.c b/dlls/advapi32/tests/registry.c index 4ea0f68..f669728 100644 --- a/dlls/advapi32/tests/registry.c +++ b/dlls/advapi32/tests/registry.c @@ -2507,6 +2507,12 @@ static void test_redirection(void) } } + if (limited_user) + { + skip("not enough privileges to modify HKLM\n"); + return; + } + err = RegCreateKeyExA( HKEY_LOCAL_MACHINE, "Software\\Wine", 0, NULL, 0, KEY_WOW64_64KEY | KEY_ALL_ACCESS, NULL, &root64, NULL ); ok( err == ERROR_SUCCESS, "RegCreateKeyExA failed: %u\n", err );
participants (1)
-
Alexandre Julliard