André Hentschel : advapi32/tests: Add some skips.

Alexandre Julliard julliard at winehq.org
Mon Mar 14 14:29:46 CDT 2011


Module: wine
Branch: master
Commit: e2a3b4b4e59d519d07be925c057aa3e82ff1a8ea
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e2a3b4b4e59d519d07be925c057aa3e82ff1a8ea

Author: André Hentschel <nerv at dawncrow.de>
Date:   Sun Mar 13 15:32:59 2011 +0100

advapi32/tests: Add some skips.

---

 dlls/advapi32/tests/registry.c |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/dlls/advapi32/tests/registry.c b/dlls/advapi32/tests/registry.c
index 2809559..91164bd 100644
--- a/dlls/advapi32/tests/registry.c
+++ b/dlls/advapi32/tests/registry.c
@@ -2064,8 +2064,13 @@ static void test_classesroot(void)
         delete_key( hkey );
         RegCloseKey( hkey );
     }
-    if (RegCreateKeyExA( HKEY_CURRENT_USER, "Software\\Classes\\WineTestCls", 0, NULL, 0,
-                         KEY_QUERY_VALUE|KEY_SET_VALUE, NULL, &hkey, NULL )) return;
+    res = RegCreateKeyExA( HKEY_CURRENT_USER, "Software\\Classes\\WineTestCls", 0, NULL, 0,
+                           KEY_QUERY_VALUE|KEY_SET_VALUE, NULL, &hkey, NULL );
+    if (res == ERROR_ACCESS_DENIED)
+    {
+        skip("not enough privileges to add a user class\n");
+        return;
+    }
 
     /* try to open that key in hkcr */
     res = RegOpenKeyExA( HKEY_CLASSES_ROOT, "WineTestCls", 0,
@@ -2075,7 +2080,7 @@ static void test_classesroot(void)
                  "test key not found in hkcr: %d\n", res);
     if (res)
     {
-        trace( "HKCR key merging not supported\n" );
+        skip("HKCR key merging not supported\n");
         delete_key( hkey );
         RegCloseKey( hkey );
         return;




More information about the wine-cvs mailing list