aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_lookup_shadow_filter.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-02-24 10:28:16 +0100
committerChristian Grothoff <christian@grothoff.org>2019-02-24 10:28:16 +0100
commit0b5dc8a620fca8dbca9c122594b70267e404859f (patch)
tree71166165545fcd77ee36bba8eaec45f7bac62da9 /src/namestore/test_namestore_api_lookup_shadow_filter.c
parent4577873dccd43d132062ae3c07e316c86be6af2f (diff)
downloadgnunet-0b5dc8a620fca8dbca9c122594b70267e404859f.tar.gz
gnunet-0b5dc8a620fca8dbca9c122594b70267e404859f.zip
avoid failing hard if 'gnunetcheck' db does not exist
(or plugins cannot be loaded for other reasons)
Diffstat (limited to 'src/namestore/test_namestore_api_lookup_shadow_filter.c')
-rw-r--r--src/namestore/test_namestore_api_lookup_shadow_filter.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/namestore/test_namestore_api_lookup_shadow_filter.c b/src/namestore/test_namestore_api_lookup_shadow_filter.c
index 0347eafcc..3d1dbfacf 100644
--- a/src/namestore/test_namestore_api_lookup_shadow_filter.c
+++ b/src/namestore/test_namestore_api_lookup_shadow_filter.c
@@ -333,18 +333,16 @@ run (void *cls,
333} 333}
334 334
335 335
336#include "test_common.c"
337
338
336int 339int
337main (int argc, char *argv[]) 340main (int argc, char *argv[])
338{ 341{
339 const char *plugin_name; 342 const char *plugin_name;
340 char *cfg_name; 343 char *cfg_name;
341 344
342 plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); 345 SETUP_CFG (plugin_name, cfg_name);
343 GNUNET_asprintf (&cfg_name,
344 "test_namestore_api_%s.conf",
345 plugin_name);
346 GNUNET_DISK_purge_cfg_dir (cfg_name,
347 "GNUNET_TEST_HOME");
348 res = 1; 346 res = 1;
349 if (0 != 347 if (0 !=
350 GNUNET_TESTING_peer_run ("test-namestore-api-lookup-shadow-filter", 348 GNUNET_TESTING_peer_run ("test-namestore-api-lookup-shadow-filter",