diff options
Diffstat (limited to 'src/namestore/test_namestore_api_lookup_shadow_filter.c')
-rw-r--r-- | src/namestore/test_namestore_api_lookup_shadow_filter.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/namestore/test_namestore_api_lookup_shadow_filter.c b/src/namestore/test_namestore_api_lookup_shadow_filter.c index 232b0133d..34d997819 100644 --- a/src/namestore/test_namestore_api_lookup_shadow_filter.c +++ b/src/namestore/test_namestore_api_lookup_shadow_filter.c | |||
@@ -66,6 +66,8 @@ static struct GNUNET_HashCode derived_hash; | |||
66 | 66 | ||
67 | static struct GNUNET_CRYPTO_EcdsaPublicKey pubkey; | 67 | static struct GNUNET_CRYPTO_EcdsaPublicKey pubkey; |
68 | 68 | ||
69 | static char *directory; | ||
70 | |||
69 | static void | 71 | static void |
70 | cleanup () | 72 | cleanup () |
71 | { | 73 | { |
@@ -84,6 +86,11 @@ cleanup () | |||
84 | GNUNET_free (privkey); | 86 | GNUNET_free (privkey); |
85 | privkey = NULL; | 87 | privkey = NULL; |
86 | } | 88 | } |
89 | if (NULL != directory) | ||
90 | { | ||
91 | GNUNET_DISK_directory_remove (directory); | ||
92 | GNUNET_free (directory); | ||
93 | } | ||
87 | GNUNET_SCHEDULER_shutdown (); | 94 | GNUNET_SCHEDULER_shutdown (); |
88 | } | 95 | } |
89 | 96 | ||
@@ -291,6 +298,9 @@ run (void *cls, | |||
291 | { | 298 | { |
292 | char *hostkey_file; | 299 | char *hostkey_file; |
293 | 300 | ||
301 | directory = NULL; | ||
302 | GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory); | ||
303 | |||
294 | endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, | 304 | endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, |
295 | &endbadly, NULL); | 305 | &endbadly, NULL); |
296 | GNUNET_asprintf (&hostkey_file, | 306 | GNUNET_asprintf (&hostkey_file, |