Module: wine Branch: master Commit: 2db2a7aeefb27144cca9fb353900627a2b5ba1bf URL: http://source.winehq.org/git/wine.git/?a=commit;h=2db2a7aeefb27144cca9fb3539...
Author: Hugh McMaster hugh.mcmaster@outlook.com Date: Fri Jun 30 13:42:34 2017 +0000
regedit/tests: Test the effect of whitespace-only lines during hex data concatenation.
Signed-off-by: Hugh McMaster hugh.mcmaster@outlook.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
programs/regedit/tests/regedit.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/programs/regedit/tests/regedit.c b/programs/regedit/tests/regedit.c index 71d0f14..3b5a7f5 100644 --- a/programs/regedit/tests/regedit.c +++ b/programs/regedit/tests/regedit.c @@ -1464,12 +1464,21 @@ static void test_import_with_whitespace(void)
exec_import_str("REGEDIT4\n\n" "[HKEY_CURRENT_USER\" KEY_BASE "]\n" - ""Wine10"=hex(7):4c,69,6e,65,20,\\n" + ""Wine10a"=hex(7):4c,69,6e,65,20,\\n" " 63,6f,6e,\\n\n" " 63,61,74,\\n\n\n" " 65,6e,\\n\n\n\n" " 61,74,69,6f,6e,00,00\n\n"); - verify_reg(hkey, "Wine10", REG_MULTI_SZ, "Line concatenation\0", 20, TODO_REG_SIZE); + verify_reg(hkey, "Wine10a", REG_MULTI_SZ, "Line concatenation\0", 20, TODO_REG_SIZE); + + exec_import_str("REGEDIT4\n\n" + "[HKEY_CURRENT_USER\" KEY_BASE "]\n" + ""Wine10b"=hex(7):4c,69,6e,65,20,\\n" + " 63,6f,6e,\\n \n" + " 63,61,74,\\n\t\n\t\n" + " 65,6e,\\n\t \t\n\t \t\n\t \t\n" + " 61,74,69,6f,6e,00,00\n\n"); + verify_reg(hkey, "Wine10b", REG_MULTI_SZ, "Line concatenation\0", 20, TODO_REG_SIZE);
lr = RegCloseKey(hkey); ok(lr == ERROR_SUCCESS, "RegCloseKey failed: got %d, expected 0\n", lr);