aboutsummaryrefslogtreecommitdiff
path: root/src/sq/test_sq.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sq/test_sq.c')
-rw-r--r--src/sq/test_sq.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/sq/test_sq.c b/src/sq/test_sq.c
index e6896861e..713809030 100644
--- a/src/sq/test_sq.c
+++ b/src/sq/test_sq.c
@@ -253,8 +253,12 @@ main(int argc,
253 { 253 {
254 fprintf (stderr, 254 fprintf (stderr,
255 "Failed to create table\n"); 255 "Failed to create table\n");
256 sqlite3_close (dbh); 256 GNUNET_break (SQLITE_OK ==
257 unlink ("test.db"); 257 sqlite3_close (dbh));
258 if (0 != unlink ("test.db"))
259 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR,
260 "unlink",
261 "test.db");
258 return 1; 262 return 1;
259 } 263 }
260 264
@@ -266,12 +270,14 @@ main(int argc,
266 { 270 {
267 fprintf (stderr, 271 fprintf (stderr,
268 "Failed to drop table\n"); 272 "Failed to drop table\n");
269 sqlite3_close (dbh); 273 ret = 1;
270 unlink ("test.db");
271 return 1;
272 } 274 }
273 sqlite3_close (dbh); 275 GNUNET_break (SQLITE_OK ==
274 unlink ("test.db"); 276 sqlite3_close (dbh));
277 if (0 != unlink ("test.db"))
278 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR,
279 "unlink",
280 "test.db");
275 return ret; 281 return ret;
276} 282}
277 283