aboutsummaryrefslogtreecommitdiff
path: root/src/datastore
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-04-24 11:50:15 +0000
committerChristian Grothoff <christian@grothoff.org>2012-04-24 11:50:15 +0000
commita0683a115049af97d5d6c77e8269a8f59d86787e (patch)
tree8bb1bc72f42904c7479ebfbbe403a1230259381f /src/datastore
parent871ad1c71484dd7dccfdbfc758394f5ce2791723 (diff)
downloadgnunet-a0683a115049af97d5d6c77e8269a8f59d86787e.tar.gz
gnunet-a0683a115049af97d5d6c77e8269a8f59d86787e.zip
-trying to fix test shutdown sequence if database not setup
Diffstat (limited to 'src/datastore')
-rw-r--r--src/datastore/test_datastore_api.c2
1 files changed, 2 insertions, 0 deletions
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
462 return; 462 return;
463 case GNUNET_NO: 463 case GNUNET_NO:
464 FPRINTF (stderr, "%s", "Test 'put' operation failed, key already exists (!?)\n"); 464 FPRINTF (stderr, "%s", "Test 'put' operation failed, key already exists (!?)\n");
465 GNUNET_DATASTORE_disconnect (datastore, GNUNET_YES);
465 GNUNET_free (crc); 466 GNUNET_free (crc);
466 return; 467 return;
467 case GNUNET_SYSERR: 468 case GNUNET_SYSERR:
468 FPRINTF (stderr, 469 FPRINTF (stderr,
469 "Test 'put' operation failed with error `%s' database likely not setup, skipping test.\n", 470 "Test 'put' operation failed with error `%s' database likely not setup, skipping test.\n",
470 msg); 471 msg);
472 GNUNET_DATASTORE_disconnect (datastore, GNUNET_YES);
471 GNUNET_free (crc); 473 GNUNET_free (crc);
472 return; 474 return;
473 default: 475 default: