regedit/tests: Test if the final line is imported if it doesn't end in a newline.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a2fc092e08
commit
6cd9c7ffb5
|
@ -265,6 +265,19 @@ static void test_basic_import(void)
|
|||
dword = 0x12345678;
|
||||
verify_reg(hkey, "Wine4", REG_DWORD, &dword, sizeof(dword), 0);
|
||||
|
||||
exec_import_str("REGEDIT4\n\n"
|
||||
"[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
|
||||
"\"Wine5\"=\"No newline\"");
|
||||
todo_wine verify_reg(hkey, "Wine5", REG_SZ, "No newline", 11, 0);
|
||||
|
||||
exec_import_str("REGEDIT4\n\n"
|
||||
"[HKEY_CURRENT_USER\\" KEY_BASE "]\n"
|
||||
"\"Wine6\"=dword:00000050\n\n"
|
||||
"\"Wine7\"=\"No newline\"");
|
||||
dword = 0x50;
|
||||
verify_reg(hkey, "Wine6", REG_DWORD, &dword, sizeof(dword), 0);
|
||||
todo_wine verify_reg(hkey, "Wine7", REG_SZ, "No newline", 11, 0);
|
||||
|
||||
RegCloseKey(hkey);
|
||||
|
||||
lr = RegDeleteKeyA(HKEY_CURRENT_USER, KEY_BASE);
|
||||
|
|
Loading…
Reference in New Issue