diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-12-17 12:28:19 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-01-09 13:56:07 +0100 |
commit | 377666075f7eb5ee07e0c76ed18ce417f7491150 (patch) | |
tree | 159f5852bcb06c99dcf2bd859d7eb945b8359300 /tests | |
parent | 6106dcb112c0ff995744281c5a343a7918491884 (diff) | |
download | msitools-377666075f7eb5ee07e0c76ed18ce417f7491150.tar.gz msitools-377666075f7eb5ee07e0c76ed18ce417f7491150.tar.xz msitools-377666075f7eb5ee07e0c76ed18ce417f7491150.zip |
database: make export() GObject-like
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testdatabase.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/testdatabase.c b/tests/testdatabase.c index c08101c..abc2d30 100644 --- a/tests/testdatabase.c +++ b/tests/testdatabase.c @@ -984,8 +984,8 @@ static void test_msiexport(void) fd = open(file, O_WRONLY | O_BINARY | O_CREAT, 0644); ok(fd != -1, "open failed\n"); - r = libmsi_database_export(hdb, "phone", fd); - ok(r == LIBMSI_RESULT_SUCCESS, "libmsi_database_export failed\n"); + r = libmsi_database_export(hdb, "phone", fd, NULL); + ok(r, "libmsi_database_export failed\n"); close(fd); @@ -5669,8 +5669,8 @@ static void test_forcecodepage(void) fd = open("forcecodepage.idt", O_WRONLY | O_BINARY | O_CREAT, 0644); ok(fd != -1, "cannot open file\n"); - r = libmsi_database_export(hdb, "_ForceCodepage", fd); - ok(r == LIBMSI_RESULT_SUCCESS, "Expected LIBMSI_RESULT_SUCCESS, got %d\n", r); + r = libmsi_database_export(hdb, "_ForceCodepage", fd, NULL); + ok(r, "Expected success\n"); close(fd); read_file_data("forcecodepage.idt", buffer); @@ -5685,8 +5685,8 @@ static void test_forcecodepage(void) fd = open("forcecodepage.idt", O_WRONLY | O_BINARY | O_CREAT, 0644); ok(fd != -1, "cannot open file\n"); - r = libmsi_database_export(hdb, "_ForceCodepage", fd); - ok(r == LIBMSI_RESULT_SUCCESS, "Expected LIBMSI_RESULT_SUCCESS, got %d\n", r); + r = libmsi_database_export(hdb, "_ForceCodepage", fd, NULL); + ok(r, "Expected success\n"); close(fd); read_file_data("forcecodepage.idt", buffer); |