gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] 03/04: check sqlite3_close() return value in test


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 03/04: check sqlite3_close() return value in test
Date: Mon, 13 Mar 2017 18:11:05 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

commit 7898eb1be882b49db0ed0613839d094c79c6275a
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Mar 13 18:09:28 2017 +0100

    check sqlite3_close() return value in test
---
 src/datacache/plugin_datacache_sqlite.c | 3 ++-
 src/sq/test_sq.c                        | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/datacache/plugin_datacache_sqlite.c 
b/src/datacache/plugin_datacache_sqlite.c
index 5cc48b26c..dd79d0125 100644
--- a/src/datacache/plugin_datacache_sqlite.c
+++ b/src/datacache/plugin_datacache_sqlite.c
@@ -758,7 +758,8 @@ libgnunet_plugin_datacache_sqlite_init (void *cls)
     LOG_SQLITE (plugin->dbh,
                 GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK,
                 "sq_prepare");
-    (void) sqlite3_close (plugin->dbh);
+    GNUNET_break (SQLITE_OK ==
+                  sqlite3_close (plugin->dbh));
     GNUNET_free (plugin);
     return NULL;
   }
diff --git a/src/sq/test_sq.c b/src/sq/test_sq.c
index 42c321666..6387eda31 100644
--- a/src/sq/test_sq.c
+++ b/src/sq/test_sq.c
@@ -271,7 +271,8 @@ main(int argc,
             "Failed to drop table\n");
     ret = 1;
   }
-  sqlite3_close (dbh);
+  GNUNET_break (SQLITE_OK ==
+                sqlite3_close (dbh));
   if (0 != unlink ("test.db"))
     GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR,
                               "unlink",

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]