diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-02-24 13:04:36 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-02-24 13:04:36 +0100 |
commit | 3a3088b2704eec5858c1b36ac990ca6c6a15d646 (patch) | |
tree | d1e95b9d4692be1cd2fb136e8dd98a0f38f2fb4c /src/namestore/test_namestore_api_monitoring_existing.c | |
parent | c1f87d457fa51d9d85f5b35f808b802fa14088bb (diff) | |
download | gnunet-3a3088b2704eec5858c1b36ac990ca6c6a15d646.tar.gz gnunet-3a3088b2704eec5858c1b36ac990ca6c6a15d646.zip |
more code cleanup, better error handing in tests
Diffstat (limited to 'src/namestore/test_namestore_api_monitoring_existing.c')
-rw-r--r-- | src/namestore/test_namestore_api_monitoring_existing.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/namestore/test_namestore_api_monitoring_existing.c b/src/namestore/test_namestore_api_monitoring_existing.c index f6ec01ffc..64bfb6949 100644 --- a/src/namestore/test_namestore_api_monitoring_existing.c +++ b/src/namestore/test_namestore_api_monitoring_existing.c | |||
@@ -376,6 +376,9 @@ run (void *cls, | |||
376 | } | 376 | } |
377 | 377 | ||
378 | 378 | ||
379 | #include "test_common.c" | ||
380 | |||
381 | |||
379 | int | 382 | int |
380 | main (int argc, | 383 | main (int argc, |
381 | char *argv[]) | 384 | char *argv[]) |
@@ -383,13 +386,8 @@ main (int argc, | |||
383 | const char *plugin_name; | 386 | const char *plugin_name; |
384 | char *cfg_name; | 387 | char *cfg_name; |
385 | 388 | ||
386 | plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); | 389 | SETUP_CFG (plugin_name, cfg_name); |
387 | GNUNET_asprintf (&cfg_name, | ||
388 | "test_namestore_api_%s.conf", | ||
389 | plugin_name); | ||
390 | res = 1; | 390 | res = 1; |
391 | GNUNET_DISK_purge_cfg_dir (cfg_name, | ||
392 | "GNUNET_TEST_HOME"); | ||
393 | if (0 != | 391 | if (0 != |
394 | GNUNET_TESTING_peer_run ("test-namestore-api-monitoring-existing", | 392 | GNUNET_TESTING_peer_run ("test-namestore-api-monitoring-existing", |
395 | cfg_name, | 393 | cfg_name, |