gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r6808 - in GNUnet/src/applications: sqstore_mysql sqstore_s


From: gnunet
Subject: [GNUnet-SVN] r6808 - in GNUnet/src/applications: sqstore_mysql sqstore_sqlite tbench
Date: Mon, 12 May 2008 14:31:58 -0600 (MDT)

Author: grothoff
Date: 2008-05-12 14:31:35 -0600 (Mon, 12 May 2008)
New Revision: 6808

Modified:
   GNUnet/src/applications/sqstore_mysql/mysqltest.c
   GNUnet/src/applications/sqstore_sqlite/sqlitetest.c
   GNUnet/src/applications/tbench/tbenchtest.c
Log:
cleanup

Modified: GNUnet/src/applications/sqstore_mysql/mysqltest.c
===================================================================
--- GNUnet/src/applications/sqstore_mysql/mysqltest.c   2008-05-12 20:30:45 UTC 
(rev 6807)
+++ GNUnet/src/applications/sqstore_mysql/mysqltest.c   2008-05-12 20:31:35 UTC 
(rev 6808)
@@ -183,7 +183,11 @@
     {
       memset (&key, 256 - i, sizeof (GNUNET_HashCode));
       value = initValue (i);
-      ASSERT (1 == api->get (&key, NULL, 0, &iterateDelete, NULL));
+      if (1 != api->get (&key, NULL, 0, &iterateDelete, NULL))
+       {
+         GNUNET_free (value);
+         ASSERT(0);
+       }
       GNUNET_free (value);
     }
   ASSERT (oldSize > api->getSize ());

Modified: GNUnet/src/applications/sqstore_sqlite/sqlitetest.c
===================================================================
--- GNUnet/src/applications/sqstore_sqlite/sqlitetest.c 2008-05-12 20:30:45 UTC 
(rev 6807)
+++ GNUnet/src/applications/sqstore_sqlite/sqlitetest.c 2008-05-12 20:31:35 UTC 
(rev 6808)
@@ -190,7 +190,11 @@
     {
       memset (&key, 256 - i, sizeof (GNUNET_HashCode));
       value = initValue (i);
-      ASSERT (1 == api->get (&key, NULL, 0, &iterateDelete, NULL));
+      if (1 != api->get (&key, NULL, 0, &iterateDelete, NULL))
+       {
+         GNUNET_free (value);
+         ASSERT(0);
+       }
       GNUNET_free (value);
     }
   ASSERT (oldSize > api->getSize ());

Modified: GNUnet/src/applications/tbench/tbenchtest.c
===================================================================
--- GNUnet/src/applications/tbench/tbenchtest.c 2008-05-12 20:30:45 UTC (rev 
6807)
+++ GNUnet/src/applications/tbench/tbenchtest.c 2008-05-12 20:31:35 UTC (rev 
6808)
@@ -114,13 +114,11 @@
   struct GNUNET_TESTING_DaemonContext *peers;
 #endif
   int i;
-  int ok;
   int ret;
   struct GNUNET_ClientServerConnection *sock;
   struct GNUNET_GC_Configuration *cfg;
 
   ret = 0;
-  ok = 1;
   cfg = GNUNET_GC_create ();
   if (-1 == GNUNET_GC_parse_configuration (cfg, "check.conf"))
     {
@@ -172,8 +170,6 @@
 #if START_PEERS
   GNUNET_TESTING_stop_daemons (peers);
 #endif
-  if (ok == 0)
-    ret = 1;
 
   GNUNET_GC_free (cfg);
   return ret;





reply via email to

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