Hib Eris : msi/tests: Test type for LONGCHAR columns.

Alexandre Julliard julliard at winehq.org
Tue Apr 28 07:53:02 CDT 2009


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

Author: Hib Eris <Hib at hiberis.nl>
Date:   Sat Apr 25 21:37:30 2009 +0200

msi/tests: Test type for LONGCHAR columns.

---

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

diff --git a/dlls/msi/tests/db.c b/dlls/msi/tests/db.c
index 0d9e3e3..16a7ba6 100644
--- a/dlls/msi/tests/db.c
+++ b/dlls/msi/tests/db.c
@@ -1133,7 +1133,8 @@ static void test_viewgetcolumninfo(void)
 	    "  `Intvalue` INT, "
 	    "  `Integervalue` INTEGER, "
 	    "  `Shortvalue` SHORT, "
-	    "  `Longvalue` LONG "
+	    "  `Longvalue` LONG, "
+	    "  `Longcharvalue` LONGCHAR "
 	    "  PRIMARY KEY `Property`)" );
     ok( r == ERROR_SUCCESS , "Failed to create table\n" );
 
@@ -1147,6 +1148,7 @@ static void test_viewgetcolumninfo(void)
     ok( check_record( rec, 4, "I2"), "wrong record type\n");
     ok( check_record( rec, 5, "I2"), "wrong record type\n");
     ok( check_record( rec, 6, "I4"), "wrong record type\n");
+    todo_wine ok( check_record( rec, 7, "S0"), "wrong record type\n");
 
     MsiCloseHandle( rec );
 
@@ -1157,6 +1159,7 @@ static void test_viewgetcolumninfo(void)
     ok( 0x1502 == get_columns_table_type(hdb, "Properties", 4 ), "_columns table wrong\n");
     ok( 0x1502 == get_columns_table_type(hdb, "Properties", 5 ), "_columns table wrong\n");
     ok( 0x1104 == get_columns_table_type(hdb, "Properties", 6 ), "_columns table wrong\n");
+    todo_wine ok( 0x1d00 == get_columns_table_type(hdb, "Properties", 7 ), "_columns table wrong\n");
 
     /* now try the names */
     rec = get_column_info( hdb, "select * from `Properties`", MSICOLINFO_NAMES );
@@ -1168,6 +1171,7 @@ static void test_viewgetcolumninfo(void)
     ok( check_record( rec, 4, "Integervalue"), "wrong record type\n");
     ok( check_record( rec, 5, "Shortvalue"), "wrong record type\n");
     ok( check_record( rec, 6, "Longvalue"), "wrong record type\n");
+    ok( check_record( rec, 7, "Longcharvalue"), "wrong record type\n");
 
     MsiCloseHandle( rec );
 




More information about the wine-cvs mailing list