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_shadow.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_shadow.c')
-rw-r--r-- | src/namestore/test_namestore_api_lookup_shadow.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/namestore/test_namestore_api_lookup_shadow.c b/src/namestore/test_namestore_api_lookup_shadow.c index e77e9f2df..dde224e1e 100644 --- a/src/namestore/test_namestore_api_lookup_shadow.c +++ b/src/namestore/test_namestore_api_lookup_shadow.c | |||
@@ -73,11 +73,6 @@ cleanup () | |||
73 | GNUNET_free (privkey); | 73 | GNUNET_free (privkey); |
74 | privkey = NULL; | 74 | privkey = NULL; |
75 | } | 75 | } |
76 | if (NULL != directory) | ||
77 | { | ||
78 | GNUNET_DISK_directory_remove (directory); | ||
79 | GNUNET_free (directory); | ||
80 | } | ||
81 | GNUNET_SCHEDULER_shutdown (); | 76 | GNUNET_SCHEDULER_shutdown (); |
82 | } | 77 | } |
83 | 78 | ||
@@ -233,6 +228,7 @@ run (void *cls, | |||
233 | 228 | ||
234 | directory = NULL; | 229 | directory = NULL; |
235 | GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory); | 230 | GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory); |
231 | GNUNET_DISK_directory_remove (directory); | ||
236 | 232 | ||
237 | endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, | 233 | endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, |
238 | &endbadly, NULL); | 234 | &endbadly, NULL); |
@@ -277,7 +273,14 @@ main (int argc, char *argv[]) | |||
277 | "test_namestore_api.conf", | 273 | "test_namestore_api.conf", |
278 | &run, | 274 | &run, |
279 | NULL)) | 275 | NULL)) |
280 | return 1; | 276 | { |
277 | res = 1; | ||
278 | } | ||
279 | if (NULL != directory) | ||
280 | { | ||
281 | GNUNET_DISK_directory_remove (directory); | ||
282 | GNUNET_free (directory); | ||
283 | } | ||
281 | return res; | 284 | return res; |
282 | } | 285 | } |
283 | 286 | ||