aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_lookup_public.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/test_namestore_api_lookup_public.c')
-rw-r--r--src/namestore/test_namestore_api_lookup_public.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/namestore/test_namestore_api_lookup_public.c b/src/namestore/test_namestore_api_lookup_public.c
index a0678ddc4..096e5e055 100644
--- a/src/namestore/test_namestore_api_lookup_public.c
+++ b/src/namestore/test_namestore_api_lookup_public.c
@@ -51,6 +51,7 @@ static struct GNUNET_NAMESTORE_QueueEntry *nsqe;
51 51
52static struct GNUNET_NAMECACHE_QueueEntry *ncqe; 52static struct GNUNET_NAMECACHE_QueueEntry *ncqe;
53 53
54static char *directory;
54 55
55static void 56static void
56cleanup () 57cleanup ()
@@ -70,6 +71,11 @@ cleanup ()
70 GNUNET_free (privkey); 71 GNUNET_free (privkey);
71 privkey = NULL; 72 privkey = NULL;
72 } 73 }
74 if (NULL != directory)
75 {
76 GNUNET_DISK_directory_remove (directory);
77 GNUNET_free (directory);
78 }
73 GNUNET_SCHEDULER_shutdown (); 79 GNUNET_SCHEDULER_shutdown ();
74} 80}
75 81
@@ -193,6 +199,9 @@ run (void *cls,
193 char *hostkey_file; 199 char *hostkey_file;
194 const char * name = "dummy.dummy.gnunet"; 200 const char * name = "dummy.dummy.gnunet";
195 201
202 directory = NULL;
203 GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory);
204
196 endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, 205 endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT,
197 &endbadly, NULL); 206 &endbadly, NULL);
198 GNUNET_asprintf (&hostkey_file, 207 GNUNET_asprintf (&hostkey_file,