Hugh McMaster : reg/tests: Test whether a line beginning with a backslash can follow a line ending in a backslash.

Alexandre Julliard julliard at winehq.org
Tue Jun 27 17:19:07 CDT 2017


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

Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date:   Tue Jun 27 09:06:22 2017 +0000

reg/tests: Test whether a line beginning with a backslash can follow a line ending in a backslash.

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

---

 programs/reg/tests/reg.c | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/programs/reg/tests/reg.c b/programs/reg/tests/reg.c
index 49d810f..931e089 100644
--- a/programs/reg/tests/reg.c
+++ b/programs/reg/tests/reg.c
@@ -2001,6 +2001,18 @@ static void test_import(void)
     todo_wine verify_reg_nonexist(hkey, "Wine58e");
     todo_wine verify_reg(hkey, NULL, REG_SZ, "Default value 5", 16, 0);
 
+    test_import_str("REGEDIT4\n\n"
+                    "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
+                    "\"Wine59a\"=hex:11,22,33,\\\n"
+                    "\\\n"
+                    "  44,55,66\n"
+                    "\"Wine59b\"=hex:11,22,33,\\\n"
+                    "  \\\n"
+                    "  44,55,66\n\n", &r);
+    todo_wine ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
+    todo_wine verify_reg_nonexist(hkey, "Wine59a");
+    todo_wine verify_reg_nonexist(hkey, "Wine59b");
+
     err = RegCloseKey(hkey);
     todo_wine ok(err == ERROR_SUCCESS, "got %d, expected 0\n", err);
 
@@ -3187,6 +3199,18 @@ static void test_unicode_import(void)
     todo_wine verify_reg_nonexist(hkey, "Wine58e");
     todo_wine verify_reg(hkey, NULL, REG_SZ, "Default value 5", 16, 0);
 
+    test_import_wstr("\xef\xbb\xbfWindows Registry Editor Version 5.00\n\n"
+                     "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
+                     "\"Wine59a\"=hex:11,22,33,\\\n"
+                     "\\\n"
+                     "  44,55,66\n"
+                     "\"Wine59b\"=hex:11,22,33,\\\n"
+                     "  \\\n"
+                     "  44,55,66\n\n", &r);
+    todo_wine ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
+    todo_wine verify_reg_nonexist(hkey, "Wine59a");
+    todo_wine verify_reg_nonexist(hkey, "Wine59b");
+
     err = RegCloseKey(hkey);
     todo_wine ok(err == ERROR_SUCCESS, "got %d, expected 0\n", err);
 




More information about the wine-cvs mailing list