summaryrefslogtreecommitdiffstats
path: root/tests/testrecord.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testrecord.c')
-rw-r--r--tests/testrecord.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testrecord.c b/tests/testrecord.c
index 2ae3965..d0f28f7 100644
--- a/tests/testrecord.c
+++ b/tests/testrecord.c
@@ -366,8 +366,8 @@ static void test_fieldzero (void)
g_object_unref (rec);
- r = libmsi_database_open (msifile, LIBMSI_DB_OPEN_CREATE, &hdb);
- ok (r == LIBMSI_RESULT_SUCCESS, "libmsi_database_open failed\n");
+ hdb = libmsi_database_new(msifile, LIBMSI_DB_OPEN_CREATE, NULL);
+ ok (hdb, "libmsi_database_open failed\n");
query = "CREATE TABLE `drone` ( "
"`id` INT, `name` CHAR (32), `number` CHAR (32) "