diff options
Diffstat (limited to 'src/namestore/test_namestore_api_monitoring.c')
-rw-r--r-- | src/namestore/test_namestore_api_monitoring.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/namestore/test_namestore_api_monitoring.c b/src/namestore/test_namestore_api_monitoring.c index 6a2418e46..895313d1b 100644 --- a/src/namestore/test_namestore_api_monitoring.c +++ b/src/namestore/test_namestore_api_monitoring.c | |||
@@ -56,6 +56,7 @@ static struct GNUNET_GNSRECORD_Data *s_rd_3; | |||
56 | 56 | ||
57 | struct GNUNET_NAMESTORE_QueueEntry * ns_ops[3]; | 57 | struct GNUNET_NAMESTORE_QueueEntry * ns_ops[3]; |
58 | 58 | ||
59 | static char *directory; | ||
59 | 60 | ||
60 | static void | 61 | static void |
61 | do_shutdown () | 62 | do_shutdown () |
@@ -118,6 +119,11 @@ do_shutdown () | |||
118 | GNUNET_free (privkey2); | 119 | GNUNET_free (privkey2); |
119 | privkey2 = NULL; | 120 | privkey2 = NULL; |
120 | } | 121 | } |
122 | if (NULL != directory) | ||
123 | { | ||
124 | GNUNET_DISK_directory_remove (directory); | ||
125 | GNUNET_free (directory); | ||
126 | } | ||
121 | } | 127 | } |
122 | 128 | ||
123 | 129 | ||
@@ -269,6 +275,9 @@ run (void *cls, | |||
269 | 275 | ||
270 | res = 1; | 276 | res = 1; |
271 | 277 | ||
278 | directory = NULL; | ||
279 | GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory); | ||
280 | |||
272 | GNUNET_asprintf(&hostkey_file, | 281 | GNUNET_asprintf(&hostkey_file, |
273 | "zonefiles%s%s", | 282 | "zonefiles%s%s", |
274 | DIR_SEPARATOR_STR, | 283 | DIR_SEPARATOR_STR, |