Jonathan Vollebregt : reg/tests: Add negative DWORD tests.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Oct 24 08:32:34 CDT 2014


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

Author: Jonathan Vollebregt <jnvsor at gmail.com>
Date:   Thu Oct 23 17:03:49 2014 +0200

reg/tests: Add negative DWORD tests.

---

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

diff --git a/programs/reg/tests/reg.c b/programs/reg/tests/reg.c
index 5b79aed..f79c124 100644
--- a/programs/reg/tests/reg.c
+++ b/programs/reg/tests/reg.c
@@ -180,6 +180,11 @@ static void test_add(void)
     verify_reg(hkey, "dword8", REG_DWORD, &dword, sizeof(dword),
                (sizeof(long) > sizeof(DWORD)) ? 0 : TODO_REG_DATA);
 
+    run_reg_exe("reg add HKCU\\" KEY_BASE " /t REG_DWORD /v dword9 /f /d -1", &r);
+    todo_wine ok(r == REG_EXIT_FAILURE || broken(r == REG_EXIT_SUCCESS /* WinXP */), "got exit code %u\n", r);
+    run_reg_exe("reg add HKCU\\" KEY_BASE " /t REG_DWORD /v dword10 /f /d -0x1", &r);
+    todo_wine ok(r == REG_EXIT_FAILURE || broken(r == REG_EXIT_SUCCESS /* WinXP */), "got exit code %u\n", r);
+
     /* REG_DWORD_LITTLE_ENDIAN */
     run_reg_exe("reg add HKCU\\" KEY_BASE " /v DWORD_LE /t REG_DWORD_LITTLE_ENDIAN /d 456 /f", &r);
     ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);




More information about the wine-cvs mailing list