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_filter.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_filter.c')
-rw-r--r-- | src/namestore/test_namestore_api_lookup_shadow_filter.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/namestore/test_namestore_api_lookup_shadow_filter.c b/src/namestore/test_namestore_api_lookup_shadow_filter.c index 34d997819..4a5a2c422 100644 --- a/src/namestore/test_namestore_api_lookup_shadow_filter.c +++ b/src/namestore/test_namestore_api_lookup_shadow_filter.c | |||
@@ -86,11 +86,6 @@ cleanup () | |||
86 | GNUNET_free (privkey); | 86 | GNUNET_free (privkey); |
87 | privkey = NULL; | 87 | privkey = NULL; |
88 | } | 88 | } |
89 | if (NULL != directory) | ||
90 | { | ||
91 | GNUNET_DISK_directory_remove (directory); | ||
92 | GNUNET_free (directory); | ||
93 | } | ||
94 | GNUNET_SCHEDULER_shutdown (); | 89 | GNUNET_SCHEDULER_shutdown (); |
95 | } | 90 | } |
96 | 91 | ||
@@ -300,6 +295,7 @@ run (void *cls, | |||
300 | 295 | ||
301 | directory = NULL; | 296 | directory = NULL; |
302 | GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory); | 297 | GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory); |
298 | GNUNET_DISK_directory_remove (directory); | ||
303 | 299 | ||
304 | endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, | 300 | endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, |
305 | &endbadly, NULL); | 301 | &endbadly, NULL); |
@@ -354,7 +350,14 @@ main (int argc, char *argv[]) | |||
354 | "test_namestore_api.conf", | 350 | "test_namestore_api.conf", |
355 | &run, | 351 | &run, |
356 | NULL)) | 352 | NULL)) |
357 | return 1; | 353 | { |
354 | res = 1; | ||
355 | } | ||
356 | if (NULL != directory) | ||
357 | { | ||
358 | GNUNET_DISK_directory_remove (directory); | ||
359 | GNUNET_free (directory); | ||
360 | } | ||
358 | return res; | 361 | return res; |
359 | } | 362 | } |
360 | 363 | ||