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_remove_not_existing_record.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_remove_not_existing_record.c')
-rw-r--r-- | src/namestore/test_namestore_api_remove_not_existing_record.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/namestore/test_namestore_api_remove_not_existing_record.c b/src/namestore/test_namestore_api_remove_not_existing_record.c index c3afee6ff..2bc53c192 100644 --- a/src/namestore/test_namestore_api_remove_not_existing_record.c +++ b/src/namestore/test_namestore_api_remove_not_existing_record.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 | ||
@@ -141,6 +136,7 @@ run (void *cls, | |||
141 | 136 | ||
142 | directory = NULL; | 137 | directory = NULL; |
143 | GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory); | 138 | GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory); |
139 | GNUNET_DISK_directory_remove (directory); | ||
144 | 140 | ||
145 | endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, | 141 | endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, |
146 | &endbadly, NULL); | 142 | &endbadly, NULL); |
@@ -178,7 +174,14 @@ main (int argc, char *argv[]) | |||
178 | "test_namestore_api.conf", | 174 | "test_namestore_api.conf", |
179 | &run, | 175 | &run, |
180 | NULL)) | 176 | NULL)) |
181 | return 1; | 177 | { |
178 | res = 1; | ||
179 | } | ||
180 | if (NULL != directory) | ||
181 | { | ||
182 | GNUNET_DISK_directory_remove (directory); | ||
183 | GNUNET_free (directory); | ||
184 | } | ||
182 | return res; | 185 | return res; |
183 | } | 186 | } |
184 | 187 | ||