Hugh McMaster : regedit/tests: Add a few more import tests.

Alexandre Julliard julliard at winehq.org
Tue Apr 11 15:31:03 CDT 2017


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

Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date:   Tue Apr 11 13:11:44 2017 +0000

regedit/tests: Add a few more import tests.

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

---

 programs/regedit/tests/regedit.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/programs/regedit/tests/regedit.c b/programs/regedit/tests/regedit.c
index d15c477..515a6ed 100644
--- a/programs/regedit/tests/regedit.c
+++ b/programs/regedit/tests/regedit.c
@@ -510,11 +510,13 @@ static void test_invalid_import(void)
                     "\"Test12a\"=dword:\n"
                     "\"Test12b\"=dword:hello\n"
                     "\"Test12c\"=dword:123456789\n"
-                    "\"Test12d\"=dword:012345678\n\n");
+                    "\"Test12d\"=dword:012345678\n"
+                    "\"Test12e\"=dword:000000001\n\n");
     verify_reg_nonexist(hkey, "Test12a");
     verify_reg_nonexist(hkey, "Test12b");
     verify_reg_nonexist(hkey, "Test12c");
     verify_reg_nonexist(hkey, "Test12d");
+    verify_reg_nonexist(hkey, "Test12e");
 
     exec_import_str("REGEDIT4\n\n"
                     "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
@@ -532,6 +534,13 @@ static void test_invalid_import(void)
     verify_reg_nonexist(hkey, "Test14b");
     verify_reg_nonexist(hkey, "Test14c");
 
+    exec_import_str("REGEDIT4\n\n"
+                    "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
+                    "\"Test15a\"=\"foo\"bar\"\n"
+                    "\"Test15b\"=\"foo\"\"bar\"\n\n");
+    todo_wine verify_reg_nonexist(hkey, "Test15a");
+    todo_wine verify_reg_nonexist(hkey, "Test15b");
+
     RegCloseKey(hkey);
 
     lr = RegDeleteKeyA(HKEY_CURRENT_USER, KEY_BASE);




More information about the wine-cvs mailing list