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_private.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_private.c')
-rw-r--r-- | src/namestore/test_namestore_api_lookup_private.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/namestore/test_namestore_api_lookup_private.c b/src/namestore/test_namestore_api_lookup_private.c index 0730db04c..2615f52c8 100644 --- a/src/namestore/test_namestore_api_lookup_private.c +++ b/src/namestore/test_namestore_api_lookup_private.c | |||
@@ -223,18 +223,16 @@ run (void *cls, | |||
223 | } | 223 | } |
224 | 224 | ||
225 | 225 | ||
226 | #include "test_common.c" | ||
227 | |||
228 | |||
226 | int | 229 | int |
227 | main (int argc, char *argv[]) | 230 | main (int argc, char *argv[]) |
228 | { | 231 | { |
229 | const char *plugin_name; | 232 | const char *plugin_name; |
230 | char *cfg_name; | 233 | char *cfg_name; |
231 | 234 | ||
232 | plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); | 235 | SETUP_CFG(plugin_name, cfg_name); |
233 | GNUNET_asprintf (&cfg_name, | ||
234 | "test_namestore_api_%s.conf", | ||
235 | plugin_name); | ||
236 | GNUNET_DISK_purge_cfg_dir (cfg_name, | ||
237 | "GNUNET_TEST_HOME"); | ||
238 | res = 1; | 236 | res = 1; |
239 | if (0 != | 237 | if (0 != |
240 | GNUNET_TESTING_peer_run ("test-namestore-api-lookup-private", | 238 | GNUNET_TESTING_peer_run ("test-namestore-api-lookup-private", |