Hugh McMaster : reg/tests: Add a test for REG_NONE with no data argument.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Feb 23 11:24:21 CST 2016


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

Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date:   Mon Feb 22 20:29:20 2016 +1100

reg/tests: Add a test for REG_NONE with no data argument.

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

---

 programs/reg/tests/reg.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/programs/reg/tests/reg.c b/programs/reg/tests/reg.c
index 2c71b5c..db3b5a2 100644
--- a/programs/reg/tests/reg.c
+++ b/programs/reg/tests/reg.c
@@ -145,6 +145,10 @@ static void test_add(void)
     ok(r == REG_EXIT_SUCCESS, "got exit code %d\n", r);
     verify_reg(hkey, "none0", REG_NONE, "d\0e\0a\0d\0b\0e\0e\0f\0\0", 18, 0);
 
+    run_reg_exe("reg add HKCU\\" KEY_BASE " /v none1 /t REG_NONE /f", &r);
+    ok(r == REG_EXIT_SUCCESS, "got exit code %u, expected 0\n", r);
+    verify_reg(hkey, "none1", REG_NONE, "\0", 2, TODO_REG_SIZE);
+
     /* REG_SZ */
     run_reg_exe("reg add HKCU\\" KEY_BASE " /d WineTest /f", &r);
     ok(r == REG_EXIT_SUCCESS || broken(r == REG_EXIT_FAILURE /* WinXP */),




More information about the wine-cvs mailing list