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_monitoring_existing.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_monitoring_existing.c')
-rw-r--r-- | src/namestore/test_namestore_api_monitoring_existing.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/namestore/test_namestore_api_monitoring_existing.c b/src/namestore/test_namestore_api_monitoring_existing.c index 9051a8d89..5d376a634 100644 --- a/src/namestore/test_namestore_api_monitoring_existing.c +++ b/src/namestore/test_namestore_api_monitoring_existing.c | |||
@@ -120,11 +120,6 @@ do_shutdown () | |||
120 | GNUNET_free (privkey2); | 120 | GNUNET_free (privkey2); |
121 | privkey2 = NULL; | 121 | privkey2 = NULL; |
122 | } | 122 | } |
123 | if (NULL != directory) | ||
124 | { | ||
125 | GNUNET_DISK_directory_remove (directory); | ||
126 | GNUNET_free (directory); | ||
127 | } | ||
128 | } | 123 | } |
129 | 124 | ||
130 | 125 | ||
@@ -288,6 +283,7 @@ run (void *cls, | |||
288 | 283 | ||
289 | directory = NULL; | 284 | directory = NULL; |
290 | GNUNET_CONFIGURATION_get_value_string(mycfg, "PATHS", "GNUNET_TEST_HOME", &directory); | 285 | GNUNET_CONFIGURATION_get_value_string(mycfg, "PATHS", "GNUNET_TEST_HOME", &directory); |
286 | GNUNET_DISK_directory_remove (directory); | ||
291 | 287 | ||
292 | res = 1; | 288 | res = 1; |
293 | 289 | ||
@@ -355,7 +351,14 @@ main (int argc, char *argv[]) | |||
355 | "test_namestore_api.conf", | 351 | "test_namestore_api.conf", |
356 | &run, | 352 | &run, |
357 | NULL)) | 353 | NULL)) |
358 | return 1; | 354 | { |
355 | res = 1; | ||
356 | } | ||
357 | if (NULL != directory) | ||
358 | { | ||
359 | GNUNET_DISK_directory_remove (directory); | ||
360 | GNUNET_free (directory); | ||
361 | } | ||
359 | return res; | 362 | return res; |
360 | } | 363 | } |
361 | 364 | ||