gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r21120 - gnunet/src/datastore


From: gnunet
Subject: [GNUnet-SVN] r21120 - gnunet/src/datastore
Date: Tue, 24 Apr 2012 13:50:15 +0200

Author: grothoff
Date: 2012-04-24 13:50:15 +0200 (Tue, 24 Apr 2012)
New Revision: 21120

Modified:
   gnunet/src/datastore/test_datastore_api.c
Log:
-trying to fix test shutdown sequence if database not setup

Modified: gnunet/src/datastore/test_datastore_api.c
===================================================================
--- gnunet/src/datastore/test_datastore_api.c   2012-04-24 11:49:57 UTC (rev 
21119)
+++ gnunet/src/datastore/test_datastore_api.c   2012-04-24 11:50:15 UTC (rev 
21120)
@@ -462,12 +462,14 @@
     return;
   case GNUNET_NO:
     FPRINTF (stderr, "%s", "Test 'put' operation failed, key already exists 
(!?)\n");
+    GNUNET_DATASTORE_disconnect (datastore, GNUNET_YES);
     GNUNET_free (crc);
     return;
   case GNUNET_SYSERR:
     FPRINTF (stderr,
              "Test 'put' operation failed with error `%s' database likely not 
setup, skipping test.\n",
              msg);
+    GNUNET_DATASTORE_disconnect (datastore, GNUNET_YES);
     GNUNET_free (crc);
     return;
   default:




reply via email to

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