diff options
Diffstat (limited to 'src/namestore/test_namestore_api_lookup_private.c')
-rw-r--r-- | src/namestore/test_namestore_api_lookup_private.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/namestore/test_namestore_api_lookup_private.c b/src/namestore/test_namestore_api_lookup_private.c index 3b997ed0e..398d31475 100644 --- a/src/namestore/test_namestore_api_lookup_private.c +++ b/src/namestore/test_namestore_api_lookup_private.c | |||
@@ -48,6 +48,8 @@ static struct GNUNET_NAMESTORE_QueueEntry *nsqe; | |||
48 | //static const char * name = "dummy.dummy.gnunet"; | 48 | //static const char * name = "dummy.dummy.gnunet"; |
49 | static const char * name = "d"; | 49 | static const char * name = "d"; |
50 | 50 | ||
51 | static char *directory; | ||
52 | |||
51 | static void | 53 | static void |
52 | cleanup () | 54 | cleanup () |
53 | { | 55 | { |
@@ -61,6 +63,11 @@ cleanup () | |||
61 | GNUNET_free (privkey); | 63 | GNUNET_free (privkey); |
62 | privkey = NULL; | 64 | privkey = NULL; |
63 | } | 65 | } |
66 | if (NULL != directory) | ||
67 | { | ||
68 | GNUNET_DISK_directory_remove (directory); | ||
69 | GNUNET_free (directory); | ||
70 | } | ||
64 | GNUNET_SCHEDULER_shutdown (); | 71 | GNUNET_SCHEDULER_shutdown (); |
65 | } | 72 | } |
66 | 73 | ||
@@ -170,6 +177,9 @@ run (void *cls, | |||
170 | struct GNUNET_GNSRECORD_Data rd; | 177 | struct GNUNET_GNSRECORD_Data rd; |
171 | char *hostkey_file; | 178 | char *hostkey_file; |
172 | 179 | ||
180 | directory = NULL; | ||
181 | GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory); | ||
182 | |||
173 | endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, | 183 | endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, |
174 | &endbadly, NULL); | 184 | &endbadly, NULL); |
175 | GNUNET_asprintf (&hostkey_file, | 185 | GNUNET_asprintf (&hostkey_file, |