From 0b5dc8a620fca8dbca9c122594b70267e404859f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 24 Feb 2019 10:28:16 +0100 Subject: avoid failing hard if 'gnunetcheck' db does not exist (or plugins cannot be loaded for other reasons) --- src/namestore/test_namestore_api_store.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/namestore/test_namestore_api_store.c') diff --git a/src/namestore/test_namestore_api_store.c b/src/namestore/test_namestore_api_store.c index 4fe77a2c6..0dbad8ce3 100644 --- a/src/namestore/test_namestore_api_store.c +++ b/src/namestore/test_namestore_api_store.c @@ -144,24 +144,21 @@ run (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _("Namestore cannot store no block\n")); } - GNUNET_free ((void *)rd.data); } +#include "test_common.c" + + int main (int argc, char *argv[]) { const char *plugin_name; char *cfg_name; - plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); - GNUNET_asprintf (&cfg_name, - "test_namestore_api_%s.conf", - plugin_name); + SETUP_CFG (plugin_name, cfg_name); res = 1; - GNUNET_DISK_purge_cfg_dir (cfg_name, - "GNUNET_TEST_HOME"); if (0 != GNUNET_TESTING_peer_run ("test-namestore-api", cfg_name, -- cgit v1.2.3