diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-16 17:26:30 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-16 17:26:30 +0000 |
commit | 55ac4eda902dd14ee1a4d24e23d97b09fb73c832 (patch) | |
tree | da930c37ca3ef67ad81f2444f40e5434c2d64172 /src/namestore/test_namestore_api_zone_iteration_specific_zone.c | |
parent | 5f150dc35f1ed2606db11c53f9c6bb554b258535 (diff) | |
download | gnunet-55ac4eda902dd14ee1a4d24e23d97b09fb73c832.tar.gz gnunet-55ac4eda902dd14ee1a4d24e23d97b09fb73c832.zip |
-start tests with fresh/empty database
Diffstat (limited to 'src/namestore/test_namestore_api_zone_iteration_specific_zone.c')
-rw-r--r-- | src/namestore/test_namestore_api_zone_iteration_specific_zone.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/namestore/test_namestore_api_zone_iteration_specific_zone.c b/src/namestore/test_namestore_api_zone_iteration_specific_zone.c index 7707c418e..858b724a5 100644 --- a/src/namestore/test_namestore_api_zone_iteration_specific_zone.c +++ b/src/namestore/test_namestore_api_zone_iteration_specific_zone.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | (C) 2009 Christian Grothoff (and other contributing authors) | 3 | (C) 2013 Christian Grothoff (and other contributing authors) |
4 | 4 | ||
5 | GNUnet is free software; you can redistribute it and/or modify | 5 | GNUnet is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published | 6 | it under the terms of the GNU General Public License as published |
@@ -400,8 +400,9 @@ run (void *cls, | |||
400 | nsh = GNUNET_NAMESTORE_connect (cfg); | 400 | nsh = GNUNET_NAMESTORE_connect (cfg); |
401 | GNUNET_break (NULL != nsh); | 401 | GNUNET_break (NULL != nsh); |
402 | /* first, iterate over empty namestore */ | 402 | /* first, iterate over empty namestore */ |
403 | zi = GNUNET_NAMESTORE_zone_iteration_start(nsh, | 403 | zi = GNUNET_NAMESTORE_zone_iteration_start (nsh, |
404 | NULL, &empty_zone_proc, nsh); | 404 | NULL, |
405 | &empty_zone_proc, nsh); | ||
405 | if (NULL == zi) | 406 | if (NULL == zi) |
406 | { | 407 | { |
407 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to create zone iterator\n"); | 408 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to create zone iterator\n"); |
@@ -415,6 +416,7 @@ run (void *cls, | |||
415 | int | 416 | int |
416 | main (int argc, char *argv[]) | 417 | main (int argc, char *argv[]) |
417 | { | 418 | { |
419 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-namestore/"); | ||
418 | res = 1; | 420 | res = 1; |
419 | if (0 != | 421 | if (0 != |
420 | GNUNET_TESTING_service_run ("test-namestore-api-zone-iteration", | 422 | GNUNET_TESTING_service_run ("test-namestore-api-zone-iteration", |