Module: wine Branch: master Commit: 344ef82b68411ac3115e5e1dcc2596fecfd9a5f0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=344ef82b68411ac3115e5e1dcc...
Author: Francois Gouget fgouget@free.fr Date: Sun Sep 18 19:41:27 2011 +0200
ntdll/tests: Skip some tests if not allowed to modify image file execution options.
---
dlls/ntdll/tests/reg.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/ntdll/tests/reg.c b/dlls/ntdll/tests/reg.c index 8f44a1d..5ca14eb 100644 --- a/dlls/ntdll/tests/reg.c +++ b/dlls/ntdll/tests/reg.c @@ -1198,6 +1198,11 @@ static void test_redirection(void)
pRtlInitUnicodeString( &str, classes64W ); status = pNtCreateKey( &key64, KEY_WOW64_64KEY | KEY_ALL_ACCESS, &attr, 0, 0, 0, 0 ); + if (status == STATUS_ACCESS_DENIED) + { + skip("Not authorized to modify the Classes key\n"); + return; + } ok( status == STATUS_SUCCESS, "NtCreateKey failed: 0x%08x\n", status );
pRtlInitUnicodeString( &str, classes32W );