Hugh McMaster : regedit/tests: Test whether comments ending in a backslash affect the next line.

Alexandre Julliard julliard at winehq.org
Fri Dec 2 17:00:09 CST 2016


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

Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date:   Fri Dec  2 11:41:33 2016 +0000

regedit/tests: Test whether comments ending in a backslash affect the next line.

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

---

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

diff --git a/programs/regedit/tests/regedit.c b/programs/regedit/tests/regedit.c
index e9bf082..23ea4f9 100644
--- a/programs/regedit/tests/regedit.c
+++ b/programs/regedit/tests/regedit.c
@@ -278,6 +278,14 @@ static void test_basic_import(void)
     verify_reg(hkey, "Wine6", REG_DWORD, &dword, sizeof(dword), 0);
     todo_wine verify_reg(hkey, "Wine7", REG_SZ, "No newline", 11, 0);
 
+    exec_import_str("REGEDIT4\n\n"
+                    "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
+                    "#comment\\\n"
+                    "\"Wine8\"=\"Line 1\"\n"
+                    ";comment \\\n"
+                    "\"Wine9\"=\"Line 2\"\n\n");
+    verify_reg(hkey, "Wine8", REG_SZ, "Line 1", 7, 0);
+    verify_reg(hkey, "Wine9", REG_SZ, "Line 2", 7, 0);
     RegCloseKey(hkey);
 
     lr = RegDeleteKeyA(HKEY_CURRENT_USER, KEY_BASE);




More information about the wine-cvs mailing list