guix-env: some update.
[oweals/gnunet.git] / src / sq / test_sq.c
index e6896861ea7cd6e135c867c24eeaf8f6fd1ad310..71380903052e1fb9d2aa16a6b81c9b23b939a99d 100644 (file)
@@ -253,8 +253,12 @@ main(int argc,
   {
     fprintf (stderr,
             "Failed to create table\n");
-    sqlite3_close (dbh);
-    unlink ("test.db");
+    GNUNET_break (SQLITE_OK ==
+                  sqlite3_close (dbh));
+    if (0 != unlink ("test.db"))
+      GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR,
+                                "unlink",
+                                "test.db");
     return 1;
   }
 
@@ -266,12 +270,14 @@ main(int argc,
   {
     fprintf (stderr,
             "Failed to drop table\n");
-    sqlite3_close (dbh);
-    unlink ("test.db");
-    return 1;
+    ret = 1;
   }
-  sqlite3_close (dbh);
-  unlink ("test.db");
+  GNUNET_break (SQLITE_OK ==
+                sqlite3_close (dbh));
+  if (0 != unlink ("test.db"))
+    GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR,
+                              "unlink",
+                              "test.db");
   return ret;
 }