reg/tests: Test if REG_SZ and REG_DWORD support line concatenation.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2017-05-17 08:12:59 +00:00 committed by Alexandre Julliard
parent c5f0de7748
commit 051cb39d61
1 changed files with 20 additions and 0 deletions

View File

@ -1372,6 +1372,16 @@ static void test_import(void)
todo_wine verify_reg_nonexist(hkey, "Wine40f");
todo_wine verify_reg(hkey, "Wine40g", REG_SZ, "Value 4", 8, 0);
test_import_str("REGEDIT4\n\n"
"[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
"\"Wine41a\"=dword:1234\\\n"
"5678\n"
"\"Wine41b\"=\"Test \\\n"
"Value\"\n\n", &r);
todo_wine ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
todo_wine verify_reg_nonexist(hkey, "Wine41a");
todo_wine verify_reg_nonexist(hkey, "Wine41b");
test_import_str("REGEDIT4\n\n"
"[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
"\"double\\\"quote\"=\"valid \\\"or\\\" not\"\n"
@ -1999,6 +2009,16 @@ static void test_import(void)
todo_wine ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
todo_wine verify_reg_nonexist(hkey, "Multi-Line9");
test_import_wstr("\xef\xbb\xbfWindows Registry Editor Version 5.00\n\n"
"[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
"\"Wine41a\"=dword:1234\\\n"
"5678\n"
"\"Wine41b\"=\"Test \\\n"
"Value\"\n\n", &r);
todo_wine ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
todo_wine verify_reg_nonexist(hkey, "Wine41a");
todo_wine verify_reg_nonexist(hkey, "Wine41b");
test_import_wstr("\xef\xbb\xbfWindows Registry Editor Version 5.00\n\n"
"[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
"\"double\\\"quote\"=\"valid \\\"or\\\" not\"\n"