From a0683a115049af97d5d6c77e8269a8f59d86787e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 24 Apr 2012 11:50:15 +0000 Subject: -trying to fix test shutdown sequence if database not setup --- src/datastore/test_datastore_api.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/datastore') 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: -- cgit v1.2.3