From: Christian Grothoff Date: Tue, 24 Apr 2012 11:50:15 +0000 (+0000) Subject: -trying to fix test shutdown sequence if database not setup X-Git-Tag: initial-import-from-subversion-38251~13814 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a0683a115049af97d5d6c77e8269a8f59d86787e;p=oweals%2Fgnunet.git -trying to fix test shutdown sequence if database not setup --- diff --git a/src/datastore/test_datastore_api.c b/src/datastore/test_datastore_api.c index 25836ca66..f6945ed2e 100644 --- a/src/datastore/test_datastore_api.c +++ b/src/datastore/test_datastore_api.c @@ -462,12 +462,14 @@ run_tests (void *cls, int32_t success, struct GNUNET_TIME_Absolute min_expiratio 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: