Module: wine Branch: master Commit: 051cb39d61b426987145ec5b40218cb517e8e1c0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=051cb39d61b426987145ec5b40...
Author: Hugh McMaster hugh.mcmaster@outlook.com Date: Wed May 17 08:12:59 2017 +0000
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
---
programs/reg/tests/reg.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
diff --git a/programs/reg/tests/reg.c b/programs/reg/tests/reg.c index 86ff7b5..1784a06 100644 --- a/programs/reg/tests/reg.c +++ b/programs/reg/tests/reg.c @@ -1374,6 +1374,16 @@ static void test_import(void)
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" ""single'quote"=dword:00000008\n\n", &r); todo_wine ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r); @@ -2001,6 +2011,16 @@ static void test_import(void)
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" ""single'quote"=dword:00000008\n\n", &r); todo_wine ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);