Hugh McMaster : reg/tests: Add REG_NONE to the empty hex data import tests.

Alexandre Julliard julliard at winehq.org
Fri Oct 13 18:44:15 CDT 2017


Module: wine
Branch: master
Commit: 50619b6ed30afa39537c234954038cf678ab7865
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=50619b6ed30afa39537c234954038cf678ab7865

Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date:   Fri Oct 13 08:15:28 2017 +0000

reg/tests: Add REG_NONE to the empty hex data import tests.

Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/reg/tests/reg.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/programs/reg/tests/reg.c b/programs/reg/tests/reg.c
index 168a03d..48cf8f2 100644
--- a/programs/reg/tests/reg.c
+++ b/programs/reg/tests/reg.c
@@ -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);
@@ -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);
@@ -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);
@@ -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);




More information about the wine-cvs mailing list