Benjamin Arai : msi: Adds tests to check if joins return the correct number of rows.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Sep 20 13:27:01 CDT 2006


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

Author: Benjamin Arai <me at benjaminarai.com>
Date:   Tue Sep 19 16:11:50 2006 -0700

msi: Adds tests to check if joins return the correct number of rows.

---

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

diff --git a/dlls/msi/tests/db.c b/dlls/msi/tests/db.c
index 64a573e..4ea7c35 100644
--- a/dlls/msi/tests/db.c
+++ b/dlls/msi/tests/db.c
@@ -1893,6 +1893,11 @@ static void test_join(void)
         MsiCloseHandle(hrec);
     }
 
+    todo_wine
+    {
+        ok( i == 5, "Expected 5 rows, got %ld\n", i );
+    }
+
     ok( r == ERROR_NO_MORE_ITEMS, "expected no more items: %d\n", r );
 
     MsiViewClose(hview);
@@ -1937,6 +1942,11 @@ static void test_join(void)
 
     todo_wine
     {
+        ok( i == 2, "Expected 2 rows, got %ld\n", i );
+    }
+
+    todo_wine
+    {
         ok( r == ERROR_NO_MORE_ITEMS, "expected no more items: %d\n", r );
     }
 
@@ -1975,6 +1985,8 @@ static void test_join(void)
         MsiCloseHandle(hrec);
     }
 
+    ok( i == 2, "Expected 2 rows, got %ld\n", i );
+
     ok( r == ERROR_NO_MORE_ITEMS, "expected no more items: %d\n", r );
 
     MsiViewClose(hview);
@@ -2012,6 +2024,8 @@ static void test_join(void)
         MsiCloseHandle(hrec);
     }
 
+    ok( i == 1, "Expected 1 rows, got %ld\n", i );
+
     ok( r == ERROR_NO_MORE_ITEMS, "expected no more items: %d\n", r );
 
     MsiViewClose(hview);
@@ -2058,6 +2072,11 @@ static void test_join(void)
 
     todo_wine
     {
+        ok( i == 1, "Expected 1 rows, got %ld\n", i );
+    }
+
+    todo_wine
+    {
         ok( r == ERROR_NO_MORE_ITEMS, "expected no more items: %d\n", r );
     }
 
@@ -2104,6 +2123,11 @@ static void test_join(void)
 
     todo_wine
     {
+        ok( i == 6, "Expected 6 rows, got %ld\n", i );
+    }
+
+    todo_wine
+    {
         ok( r == ERROR_NO_MORE_ITEMS, "expected no more items: %d\n", r );
     }
 
@@ -2151,6 +2175,11 @@ static void test_join(void)
 
     todo_wine
     {
+        ok( i == 3, "Expected 3 rows, got %ld\n", i );
+    }
+
+    todo_wine
+    {
         ok( r == ERROR_NO_MORE_ITEMS, "expected no more items: %d\n", r );
     }
 




More information about the wine-cvs mailing list