Mike McCormack : msi: Add a few more tests for MSI_NULL_INTEGER.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Sep 7 05:07:08 CDT 2006


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

Author: Mike McCormack <mike at codeweavers.com>
Date:   Thu Aug 31 17:05:05 2006 +0900

msi: Add a few more tests for MSI_NULL_INTEGER.

---

 dlls/msi/tests/record.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/dlls/msi/tests/record.c b/dlls/msi/tests/record.c
index f6e11a9..8bf6489 100644
--- a/dlls/msi/tests/record.c
+++ b/dlls/msi/tests/record.c
@@ -234,6 +234,18 @@ static void test_msirecord(void)
     ok(i == ERROR_SUCCESS, "Failed to set string at 0\n");
     i = MsiRecordGetInteger(h, 0);
     ok(i == 1, "should get one\n");
+    i = MsiRecordSetString(h,0,"foo");
+    ok(i == ERROR_SUCCESS, "Failed to set string at 0\n");
+    i = MsiRecordGetInteger(h, 0);
+    ok(i == MSI_NULL_INTEGER, "should get zero\n");
+    i = MsiRecordSetString(h,0,"");
+    ok(i == ERROR_SUCCESS, "Failed to set string at 0\n");
+    i = MsiRecordGetInteger(h, 0);
+    ok(i == MSI_NULL_INTEGER, "should get zero\n");
+    i = MsiRecordSetString(h,0,"+1");
+    ok(i == ERROR_SUCCESS, "Failed to set string at 0\n");
+    i = MsiRecordGetInteger(h, 0);
+    ok(i == MSI_NULL_INTEGER, "should get zero\n");
 
     /* same record, try converting integers to strings */
     r = MsiRecordSetInteger(h, 0, 32);




More information about the wine-cvs mailing list