diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-05-01 12:44:39 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-05-01 12:44:39 +0200 |
commit | a5e3e870f27c8ef3a3cd5d59a686a3050f9c64fb (patch) | |
tree | 6eec8a07a9a932d3c7b36f196ad01428e4f0ed63 /src/namestore/test_namestore_api_zone_iteration_stop.c | |
parent | 8f2f5bc2ee8ebf9b059b7b7e3104f25c5c363458 (diff) | |
download | gnunet-a5e3e870f27c8ef3a3cd5d59a686a3050f9c64fb.tar.gz gnunet-a5e3e870f27c8ef3a3cd5d59a686a3050f9c64fb.zip |
more extensive namestore tests for the non-sqlite plugins, with bugfixes
Diffstat (limited to 'src/namestore/test_namestore_api_zone_iteration_stop.c')
-rw-r--r-- | src/namestore/test_namestore_api_zone_iteration_stop.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/namestore/test_namestore_api_zone_iteration_stop.c b/src/namestore/test_namestore_api_zone_iteration_stop.c index d23a5f4cb..c7be5fead 100644 --- a/src/namestore/test_namestore_api_zone_iteration_stop.c +++ b/src/namestore/test_namestore_api_zone_iteration_stop.c | |||
@@ -508,15 +508,23 @@ run (void *cls, | |||
508 | int | 508 | int |
509 | main (int argc, char *argv[]) | 509 | main (int argc, char *argv[]) |
510 | { | 510 | { |
511 | const char *plugin_name; | ||
512 | char *cfg_name; | ||
513 | |||
514 | plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); | ||
515 | GNUNET_asprintf (&cfg_name, | ||
516 | "test_namestore_api_%s.conf", | ||
517 | plugin_name); | ||
511 | res = 1; | 518 | res = 1; |
512 | if (0 != | 519 | if (0 != |
513 | GNUNET_TESTING_peer_run ("test-namestore-api-zone-iteration-stop", | 520 | GNUNET_TESTING_peer_run ("test-namestore-api-zone-iteration-stop", |
514 | "test_namestore_api.conf", | 521 | cfg_name, |
515 | &run, | 522 | &run, |
516 | NULL)) | 523 | NULL)) |
517 | { | 524 | { |
518 | res = 1; | 525 | res = 1; |
519 | } | 526 | } |
527 | GNUNET_free (cfg_name); | ||
520 | if (NULL != directory) | 528 | if (NULL != directory) |
521 | { | 529 | { |
522 | GNUNET_DISK_directory_remove (directory); | 530 | GNUNET_DISK_directory_remove (directory); |