Skip to content

Commit

Permalink
reg/tests: Add REG_NONE to the empty hex data import tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Hugh McMaster <[email protected]>
Signed-off-by: Alexandre Julliard <[email protected]>
  • Loading branch information
hughmcmaster authored and julliard committed Oct 13, 2017
1 parent e426c35 commit 50619b6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions programs/reg/tests/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2356,7 +2356,8 @@ static void test_import(void)
"\"Wine68e\"=hex(7):\n"
"\"Wine68f\"=hex(100):\n"
"\"Wine68g\"=hex(abcd):\n"
"\"Wine68h\"=hex:\n\n", &r);
"\"Wine68h\"=hex:\n"
"\"Wine68i\"=hex(0):\n\n", &r);
ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
verify_reg(hkey, "Wine68a", REG_SZ, NULL, 0, 0);
verify_reg(hkey, "Wine68b", REG_EXPAND_SZ, NULL, 0, TODO_REG_SIZE);
Expand All @@ -2366,6 +2367,7 @@ static void test_import(void)
verify_reg(hkey, "Wine68f", 0x100, NULL, 0, 0);
verify_reg(hkey, "Wine68g", 0xabcd, NULL, 0, 0);
verify_reg(hkey, "Wine68h", REG_BINARY, NULL, 0, 0);
verify_reg(hkey, "Wine68i", REG_NONE, NULL, 0, 0);

err = RegCloseKey(hkey);
ok(err == ERROR_SUCCESS, "got %d, expected 0\n", err);
Expand Down Expand Up @@ -3850,7 +3852,8 @@ static void test_unicode_import(void)
"\"Wine68e\"=hex(7):\n"
"\"Wine68f\"=hex(100):\n"
"\"Wine68g\"=hex(abcd):\n"
"\"Wine68h\"=hex:\n\n", &r);
"\"Wine68h\"=hex:\n"
"\"Wine68i\"=hex(0):\n\n", &r);
ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
verify_reg(hkey, "Wine68a", REG_SZ, NULL, 0, 0);
verify_reg(hkey, "Wine68b", REG_EXPAND_SZ, NULL, 0, TODO_REG_SIZE);
Expand All @@ -3860,6 +3863,7 @@ static void test_unicode_import(void)
verify_reg(hkey, "Wine68f", 0x100, NULL, 0, 0);
verify_reg(hkey, "Wine68g", 0xabcd, NULL, 0, 0);
verify_reg(hkey, "Wine68h", REG_BINARY, NULL, 0, 0);
verify_reg(hkey, "Wine68i", REG_NONE, NULL, 0, 0);

err = RegCloseKey(hkey);
ok(err == ERROR_SUCCESS, "got %d, expected 0\n", err);
Expand Down

0 comments on commit 50619b6

Please sign in to comment.