[PATCH 2/8] regedit/tests: Test line concatenation with a new registry key on the next line
Hugh McMaster
hugh.mcmaster at outlook.com
Tue Jun 27 07:30:50 CDT 2017
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
programs/regedit/tests/regedit.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/programs/regedit/tests/regedit.c b/programs/regedit/tests/regedit.c
index 79740c4ca7..e2aea48774 100644
--- a/programs/regedit/tests/regedit.c
+++ b/programs/regedit/tests/regedit.c
@@ -856,6 +856,23 @@ static void test_invalid_import(void)
verify_reg_nonexist(hkey, "Wine23j");
verify_reg_nonexist(hkey, "Wine23k");
+ exec_import_str("REGEDIT4\n\n"
+ "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
+ "\"Wine24a\"=hex(2):4c,69,6e,65,20,\\\n"
+ "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey1]\n");
+ verify_reg_nonexist(hkey, "Wine24a");
+ verify_key_nonexist(hkey, "Subkey1");
+
+ exec_import_str("REGEDIT4\n\n"
+ "[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
+ "\"Wine24b\"=hex(2):4c,69,6e,65,20\\\n"
+ "[HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey2]\n");
+ verify_reg_nonexist(hkey, "Wine24b");
+ todo_wine verify_key(hkey, "Subkey2");
+
+ lr = RegDeleteKeyA(hkey, "Subkey2");
+ todo_wine ok(lr == ERROR_SUCCESS, "RegDeleteKey failed: %u\n", lr);
+
RegCloseKey(hkey);
lr = RegDeleteKeyA(HKEY_CURRENT_USER, KEY_BASE);
--
2.11.0
More information about the wine-patches
mailing list