reg/tests: Fix the add empty type test.

The exit code of this test will always be REG_EXIT_FAILURE,
so the return code is neither broken nor todo_wine.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2015-11-16 11:53:07 +11:00 committed by Alexandre Julliard
parent 96f4f53937
commit 9e4e1cf9be
1 changed files with 1 additions and 6 deletions

View File

@ -110,12 +110,7 @@ static void test_add(void)
/* Test empty type */
run_reg_exe("reg add HKCU\\" KEY_BASE " /v emptyType /t \"\" /d WineTest /f", &r);
todo_wine ok(r == REG_EXIT_SUCCESS || broken(r == REG_EXIT_FAILURE /* WinXP */),
"got exit code %u\n", r);
if (r == REG_EXIT_SUCCESS)
todo_wine verify_reg(hkey, "emptyType", REG_SZ, "", 1, 0);
else
todo_wine win_skip("broken reg.exe detected\n");
ok(r == REG_EXIT_FAILURE, "got exit code %u\n", r);
/* Test input key formats */
run_reg_exe("reg add \\HKCU\\" KEY_BASE "\\keytest0 /f", &r);