diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-02-24 10:28:16 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-02-24 10:28:16 +0100 |
commit | 0b5dc8a620fca8dbca9c122594b70267e404859f (patch) | |
tree | 71166165545fcd77ee36bba8eaec45f7bac62da9 /src/namestore/test_namestore_api_lookup_nick.c | |
parent | 4577873dccd43d132062ae3c07e316c86be6af2f (diff) | |
download | gnunet-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_nick.c')
-rw-r--r-- | src/namestore/test_namestore_api_lookup_nick.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/namestore/test_namestore_api_lookup_nick.c b/src/namestore/test_namestore_api_lookup_nick.c index 8f2896359..1257701e9 100644 --- a/src/namestore/test_namestore_api_lookup_nick.c +++ b/src/namestore/test_namestore_api_lookup_nick.c | |||
@@ -306,6 +306,8 @@ run (void *cls, | |||
306 | } | 306 | } |
307 | } | 307 | } |
308 | 308 | ||
309 | #include "test_common.c" | ||
310 | |||
309 | 311 | ||
310 | int | 312 | int |
311 | main (int argc, char *argv[]) | 313 | main (int argc, char *argv[]) |
@@ -313,12 +315,7 @@ main (int argc, char *argv[]) | |||
313 | const char *plugin_name; | 315 | const char *plugin_name; |
314 | char *cfg_name; | 316 | char *cfg_name; |
315 | 317 | ||
316 | plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); | 318 | SETUP_CFG (plugin_name, cfg_name); |
317 | GNUNET_asprintf (&cfg_name, | ||
318 | "test_namestore_api_%s.conf", | ||
319 | plugin_name); | ||
320 | GNUNET_DISK_purge_cfg_dir (cfg_name, | ||
321 | "GNUNET_TEST_HOME"); | ||
322 | res = 1; | 319 | res = 1; |
323 | if (0 != | 320 | if (0 != |
324 | GNUNET_TESTING_peer_run ("test-namestore-api-lookup-nick", | 321 | GNUNET_TESTING_peer_run ("test-namestore-api-lookup-nick", |