diff options
Diffstat (limited to 'src/namestore/test_namestore_api_zone_iteration_stop.c')
-rw-r--r-- | src/namestore/test_namestore_api_zone_iteration_stop.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/namestore/test_namestore_api_zone_iteration_stop.c b/src/namestore/test_namestore_api_zone_iteration_stop.c index 728a118eb..77a3d6a38 100644 --- a/src/namestore/test_namestore_api_zone_iteration_stop.c +++ b/src/namestore/test_namestore_api_zone_iteration_stop.c | |||
@@ -56,6 +56,8 @@ static char * s_name_3; | |||
56 | 56 | ||
57 | static struct GNUNET_GNSRECORD_Data *s_rd_3; | 57 | static struct GNUNET_GNSRECORD_Data *s_rd_3; |
58 | 58 | ||
59 | static char *directory; | ||
60 | |||
59 | 61 | ||
60 | /** | 62 | /** |
61 | * Re-establish the connection to the service. | 63 | * Re-establish the connection to the service. |
@@ -103,6 +105,12 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
103 | if (privkey2 != NULL) | 105 | if (privkey2 != NULL) |
104 | GNUNET_free (privkey2); | 106 | GNUNET_free (privkey2); |
105 | privkey2 = NULL; | 107 | privkey2 = NULL; |
108 | |||
109 | if (NULL != directory) | ||
110 | { | ||
111 | GNUNET_DISK_directory_remove (directory); | ||
112 | GNUNET_free (directory); | ||
113 | } | ||
106 | res = 1; | 114 | res = 1; |
107 | } | 115 | } |
108 | 116 | ||
@@ -431,6 +439,9 @@ run (void *cls, | |||
431 | const struct GNUNET_CONFIGURATION_Handle *cfg, | 439 | const struct GNUNET_CONFIGURATION_Handle *cfg, |
432 | struct GNUNET_TESTING_Peer *peer) | 440 | struct GNUNET_TESTING_Peer *peer) |
433 | { | 441 | { |
442 | directory = NULL; | ||
443 | GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory); | ||
444 | |||
434 | endbadly_task = GNUNET_SCHEDULER_add_delayed(TIMEOUT, &endbadly, NULL); | 445 | endbadly_task = GNUNET_SCHEDULER_add_delayed(TIMEOUT, &endbadly, NULL); |
435 | nsh = GNUNET_NAMESTORE_connect (cfg); | 446 | nsh = GNUNET_NAMESTORE_connect (cfg); |
436 | GNUNET_break (NULL != nsh); | 447 | GNUNET_break (NULL != nsh); |