diff options
Diffstat (limited to 'src/namestore/test_namestore_api_lookup_nick.c')
-rw-r--r-- | src/namestore/test_namestore_api_lookup_nick.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/namestore/test_namestore_api_lookup_nick.c b/src/namestore/test_namestore_api_lookup_nick.c index 99f5822f9..9cefc8a13 100644 --- a/src/namestore/test_namestore_api_lookup_nick.c +++ b/src/namestore/test_namestore_api_lookup_nick.c | |||
@@ -52,6 +52,8 @@ static struct GNUNET_NAMESTORE_QueueEntry *nsqe; | |||
52 | //static const char * name = "dummy.dummy.gnunet"; | 52 | //static const char * name = "dummy.dummy.gnunet"; |
53 | static const char * name = "d"; | 53 | static const char * name = "d"; |
54 | 54 | ||
55 | static char *directory; | ||
56 | |||
55 | static void | 57 | static void |
56 | cleanup () | 58 | cleanup () |
57 | { | 59 | { |
@@ -66,6 +68,11 @@ cleanup () | |||
66 | GNUNET_free (privkey); | 68 | GNUNET_free (privkey); |
67 | privkey = NULL; | 69 | privkey = NULL; |
68 | } | 70 | } |
71 | if (NULL != directory) | ||
72 | { | ||
73 | GNUNET_DISK_directory_remove (directory); | ||
74 | GNUNET_free (directory); | ||
75 | } | ||
69 | GNUNET_SCHEDULER_shutdown (); | 76 | GNUNET_SCHEDULER_shutdown (); |
70 | } | 77 | } |
71 | 78 | ||
@@ -267,6 +274,9 @@ run (void *cls, | |||
267 | { | 274 | { |
268 | char *hostkey_file; | 275 | char *hostkey_file; |
269 | 276 | ||
277 | directory = NULL; | ||
278 | GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory); | ||
279 | |||
270 | endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, | 280 | endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, |
271 | &endbadly, NULL); | 281 | &endbadly, NULL); |
272 | GNUNET_asprintf (&hostkey_file, | 282 | GNUNET_asprintf (&hostkey_file, |