summaryrefslogtreecommitdiffstats
path: root/tests/testdatabase.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-11-30 23:54:39 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2012-12-06 20:30:31 +0100
commit3c15be137db96a604c90e5c850092e49abea4511 (patch)
tree4b76cf2455d15533e608ce3ee5641c1eaba04e62 /tests/testdatabase.c
parenta10f8ef403ca688bdf506db1bed79734437ae75e (diff)
eliminate LIBMSI_DB_OPEN_DIRECT
It is not supported by libgsf
Diffstat (limited to 'tests/testdatabase.c')
-rw-r--r--tests/testdatabase.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/tests/testdatabase.c b/tests/testdatabase.c
index 74822e0..48685f8 100644
--- a/tests/testdatabase.c
+++ b/tests/testdatabase.c
@@ -47,12 +47,6 @@ static void test_msidatabase(void)
res = libmsi_database_open( msifile, msifile2, &hdb );
ok( res == LIBMSI_RESULT_OPEN_FAILED, "expected failure\n");
- res = libmsi_database_open( msifile, (LPSTR) 0xff, &hdb );
- ok( res == LIBMSI_RESULT_INVALID_PARAMETER, "expected failure\n");
-
- res = libmsi_unref( hdb );
- ok( res == LIBMSI_RESULT_SUCCESS , "Failed to close database\n" );
-
/* create an empty database */
res = libmsi_database_open(msifile, LIBMSI_DB_OPEN_CREATE, &hdb );
ok( res == LIBMSI_RESULT_SUCCESS , "Failed to create database\n" );
@@ -103,12 +97,6 @@ static void test_msidatabase(void)
res = libmsi_unref( hdb );
ok( res == LIBMSI_RESULT_SUCCESS , "Failed to close database\n" );
- res = libmsi_database_open( msifile, LIBMSI_DB_OPEN_DIRECT, &hdb );
- ok( res == LIBMSI_RESULT_SUCCESS , "Failed to open database\n" );
-
- res = libmsi_unref( hdb );
- ok( res == LIBMSI_RESULT_SUCCESS , "Failed to close database\n" );
-
res = libmsi_database_open( msifile, LIBMSI_DB_OPEN_TRANSACT, &hdb );
ok( res == LIBMSI_RESULT_SUCCESS , "Failed to open database\n" );
@@ -2983,7 +2971,7 @@ static void test_try_transform(void)
generate_transform_manual();
- r = libmsi_database_open(msifile, LIBMSI_DB_OPEN_DIRECT, &hdb );
+ r = libmsi_database_open(msifile, LIBMSI_DB_OPEN_TRANSACT, &hdb );
ok( r == LIBMSI_RESULT_SUCCESS , "Failed to create database\n" );
r = libmsi_database_apply_transform( hdb, mstfile, 0 );
@@ -7087,7 +7075,7 @@ static void test_forcecodepage(void)
libmsi_unref(hdb);
- r = libmsi_database_open(msifile, LIBMSI_DB_OPEN_DIRECT, &hdb);
+ r = libmsi_database_open(msifile, LIBMSI_DB_OPEN_TRANSACT, &hdb);
ok(r == LIBMSI_RESULT_SUCCESS, "Expected LIBMSI_RESULT_SUCCESS, got %d\n", r);
sql = "SELECT * FROM `_ForceCodepage`";