aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_lookup_private.c
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2013-12-09 17:53:31 +0000
committerLRN <lrn1986@gmail.com>2013-12-09 17:53:31 +0000
commitcc57e1d42bbfee97247ad7ea1db3fa81ecbf2c08 (patch)
treea1239bef1cb83eed339459d24dad5e69f27c8aa1 /src/namestore/test_namestore_api_lookup_private.c
parent2d828dcdcd023b9361b11491254d08f122c142b1 (diff)
downloadgnunet-cc57e1d42bbfee97247ad7ea1db3fa81ecbf2c08.tar.gz
gnunet-cc57e1d42bbfee97247ad7ea1db3fa81ecbf2c08.zip
Remove test home at the beginning and at the VERY end
Diffstat (limited to 'src/namestore/test_namestore_api_lookup_private.c')
-rw-r--r--src/namestore/test_namestore_api_lookup_private.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/namestore/test_namestore_api_lookup_private.c b/src/namestore/test_namestore_api_lookup_private.c
index 398d31475..ca03bf489 100644
--- a/src/namestore/test_namestore_api_lookup_private.c
+++ b/src/namestore/test_namestore_api_lookup_private.c
@@ -63,11 +63,6 @@ cleanup ()
63 GNUNET_free (privkey); 63 GNUNET_free (privkey);
64 privkey = NULL; 64 privkey = NULL;
65 } 65 }
66 if (NULL != directory)
67 {
68 GNUNET_DISK_directory_remove (directory);
69 GNUNET_free (directory);
70 }
71 GNUNET_SCHEDULER_shutdown (); 66 GNUNET_SCHEDULER_shutdown ();
72} 67}
73 68
@@ -179,6 +174,7 @@ run (void *cls,
179 174
180 directory = NULL; 175 directory = NULL;
181 GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory); 176 GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory);
177 GNUNET_DISK_directory_remove (directory);
182 178
183 endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, 179 endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT,
184 &endbadly, NULL); 180 &endbadly, NULL);
@@ -222,7 +218,14 @@ main (int argc, char *argv[])
222 "test_namestore_api.conf", 218 "test_namestore_api.conf",
223 &run, 219 &run,
224 NULL)) 220 NULL))
225 return 1; 221 {
222 res = 1;
223 }
224 if (NULL != directory)
225 {
226 GNUNET_DISK_directory_remove (directory);
227 GNUNET_free (directory);
228 }
226 return res; 229 return res;
227} 230}
228 231