diff options
author | LRN <lrn1986@gmail.com> | 2013-12-09 17:53:31 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-12-09 17:53:31 +0000 |
commit | cc57e1d42bbfee97247ad7ea1db3fa81ecbf2c08 (patch) | |
tree | a1239bef1cb83eed339459d24dad5e69f27c8aa1 /src/namestore/test_namestore_api_lookup_public.c | |
parent | 2d828dcdcd023b9361b11491254d08f122c142b1 (diff) | |
download | gnunet-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_public.c')
-rw-r--r-- | src/namestore/test_namestore_api_lookup_public.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/namestore/test_namestore_api_lookup_public.c b/src/namestore/test_namestore_api_lookup_public.c index 096e5e055..2504bc053 100644 --- a/src/namestore/test_namestore_api_lookup_public.c +++ b/src/namestore/test_namestore_api_lookup_public.c | |||
@@ -71,11 +71,6 @@ cleanup () | |||
71 | GNUNET_free (privkey); | 71 | GNUNET_free (privkey); |
72 | privkey = NULL; | 72 | privkey = NULL; |
73 | } | 73 | } |
74 | if (NULL != directory) | ||
75 | { | ||
76 | GNUNET_DISK_directory_remove (directory); | ||
77 | GNUNET_free (directory); | ||
78 | } | ||
79 | GNUNET_SCHEDULER_shutdown (); | 74 | GNUNET_SCHEDULER_shutdown (); |
80 | } | 75 | } |
81 | 76 | ||
@@ -201,6 +196,7 @@ run (void *cls, | |||
201 | 196 | ||
202 | directory = NULL; | 197 | directory = NULL; |
203 | GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory); | 198 | GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory); |
199 | GNUNET_DISK_directory_remove (directory); | ||
204 | 200 | ||
205 | endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, | 201 | endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, |
206 | &endbadly, NULL); | 202 | &endbadly, NULL); |
@@ -247,7 +243,14 @@ main (int argc, char *argv[]) | |||
247 | "test_namestore_api.conf", | 243 | "test_namestore_api.conf", |
248 | &run, | 244 | &run, |
249 | NULL)) | 245 | NULL)) |
250 | return 1; | 246 | { |
247 | res = 1; | ||
248 | } | ||
249 | if (NULL != directory) | ||
250 | { | ||
251 | GNUNET_DISK_directory_remove (directory); | ||
252 | GNUNET_free (directory); | ||
253 | } | ||
251 | return res; | 254 | return res; |
252 | } | 255 | } |
253 | 256 | ||