Hugh McMaster : regedit/tests: Test case sensitivity when creating and deleting registry keys.

Alexandre Julliard julliard at winehq.org
Tue Jun 13 16:14:50 CDT 2017


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

Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date:   Tue Jun 13 12:42:48 2017 +0000

regedit/tests: Test case sensitivity when creating and deleting registry keys.

Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/regedit/tests/regedit.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/programs/regedit/tests/regedit.c b/programs/regedit/tests/regedit.c
index b2e65a8..b53023e 100644
--- a/programs/regedit/tests/regedit.c
+++ b/programs/regedit/tests/regedit.c
@@ -1206,6 +1206,19 @@ static void test_key_creation_and_deletion(void)
     verify_key_nonexist(hkey, "Subkey2a");
     verify_key_nonexist(hkey, "Subkey2b");
 
+    /* Test case sensitivity when creating and deleting registry keys. */
+    exec_import_str("REGEDIT4\n\n"
+                    "[hkey_CURRENT_user\\" KEY_BASE "\\Subkey3a]\n\n"
+                    "[HkEy_CuRrEnT_uSeR\\" KEY_BASE "\\SuBkEy3b]\n\n");
+    todo_wine verify_key_exist(hkey, "Subkey3a");
+    todo_wine verify_key_exist(hkey, "Subkey3b");
+
+    exec_import_str("REGEDIT4\n\n"
+                    "[-HKEY_current_USER\\" KEY_BASE "\\sUBKEY3A]\n\n"
+                    "[-hKeY_cUrReNt_UsEr\\" KEY_BASE "\\sUbKeY3B]\n\n");
+    verify_key_nonexist(hkey, "Subkey3a");
+    verify_key_nonexist(hkey, "Subkey3b");
+
     lr = RegCloseKey(hkey);
     ok(lr == ERROR_SUCCESS, "RegCloseKey failed: got %d, expected 0\n", lr);
 




More information about the wine-cvs mailing list