aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_store.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/test_namestore_api_store.c')
-rw-r--r--src/namestore/test_namestore_api_store.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/namestore/test_namestore_api_store.c b/src/namestore/test_namestore_api_store.c
index c44d24809..a7a1f2bbc 100644
--- a/src/namestore/test_namestore_api_store.c
+++ b/src/namestore/test_namestore_api_store.c
@@ -61,11 +61,6 @@ cleanup ()
61 GNUNET_free (privkey); 61 GNUNET_free (privkey);
62 privkey = NULL; 62 privkey = NULL;
63 } 63 }
64 if (NULL != directory)
65 {
66 GNUNET_DISK_directory_remove (directory);
67 GNUNET_free (directory);
68 }
69 GNUNET_SCHEDULER_shutdown (); 64 GNUNET_SCHEDULER_shutdown ();
70} 65}
71 66
@@ -125,6 +120,7 @@ run (void *cls,
125 120
126 directory = NULL; 121 directory = NULL;
127 GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory); 122 GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory);
123 GNUNET_DISK_directory_remove (directory);
128 124
129 endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, 125 endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT,
130 &endbadly, NULL); 126 &endbadly, NULL);
@@ -169,7 +165,14 @@ main (int argc, char *argv[])
169 "test_namestore_api.conf", 165 "test_namestore_api.conf",
170 &run, 166 &run,
171 NULL)) 167 NULL))
172 return 1; 168 {
169 res = 1;
170 }
171 if (NULL != directory)
172 {
173 GNUNET_DISK_directory_remove (directory);
174 GNUNET_free (directory);
175 }
173 return res; 176 return res;
174} 177}
175 178