[ADVAPI32_APITEST]
authorJérôme Gardou <jerome.gardou@reactos.org>
Tue, 30 Sep 2014 19:59:02 +0000 (19:59 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Tue, 30 Sep 2014 19:59:02 +0000 (19:59 +0000)
 - Remove some tests that are broken if HKCU\software\classes\CLSID key exists.
Better tests were added later anyway.
CORE-8582

svn path=/trunk/; revision=64413

rostests/apitests/advapi32/HKEY_CLASSES_ROOT.c

index adcd624..bc3552b 100644 (file)
@@ -489,22 +489,6 @@ Test_CreateOpenKey(void)
     RegCloseKey(MachineKey);
 }
 
-static
-void
-Test_KeyName(void)
-{
-    HKEY KeyHandle;
-    DWORD ErrorCode;
-
-
-    ErrorCode = RegOpenKeyExW(HKEY_CLASSES_ROOT, L"CLSID", 0, KEY_READ, &KeyHandle);
-    ok_dec(ErrorCode, ERROR_SUCCESS);
-    ok(IS_HKCR(KeyHandle), "\n");
-    ok_key_name(KeyHandle, &HKLM_ClassesPath, L"CLSID");
-
-    RegCloseKey(KeyHandle);
-}
-
 static
 void
 Test_DuplicateHandle(void)
@@ -522,8 +506,6 @@ Test_DuplicateHandle(void)
     ok(DupHandle != NULL, "\n");
     ok(!IS_HKCR(DupHandle), "\n");
 
-    ok_key_name(DupHandle, &HKLM_ClassesPath, L"CLSID");
-
     RegCloseKey(KeyHandle);
     RegCloseKey(DupHandle);
 }
@@ -546,5 +528,4 @@ START_TEST(HKEY_CLASSES_ROOT)
 
     Test_CreateOpenKey();
     Test_DuplicateHandle();
-    Test_KeyName();
 }