regedit/tests: Add a few more import tests.

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-04-11 13:11:44 +00:00 committed by Alexandre Julliard
parent 098be09bce
commit 467def8352
1 changed files with 10 additions and 1 deletions

View File

@ -510,11 +510,13 @@ static void test_invalid_import(void)
"\"Test12a\"=dword:\n"
"\"Test12b\"=dword:hello\n"
"\"Test12c\"=dword:123456789\n"
"\"Test12d\"=dword:012345678\n\n");
"\"Test12d\"=dword:012345678\n"
"\"Test12e\"=dword:000000001\n\n");
verify_reg_nonexist(hkey, "Test12a");
verify_reg_nonexist(hkey, "Test12b");
verify_reg_nonexist(hkey, "Test12c");
verify_reg_nonexist(hkey, "Test12d");
verify_reg_nonexist(hkey, "Test12e");
exec_import_str("REGEDIT4\n\n"
"[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
@ -532,6 +534,13 @@ static void test_invalid_import(void)
verify_reg_nonexist(hkey, "Test14b");
verify_reg_nonexist(hkey, "Test14c");
exec_import_str("REGEDIT4\n\n"
"[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
"\"Test15a\"=\"foo\"bar\"\n"
"\"Test15b\"=\"foo\"\"bar\"\n\n");
todo_wine verify_reg_nonexist(hkey, "Test15a");
todo_wine verify_reg_nonexist(hkey, "Test15b");
RegCloseKey(hkey);
lr = RegDeleteKeyA(HKEY_CURRENT_USER, KEY_BASE);