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.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.c')
-rw-r--r-- | src/namestore/test_namestore_api_monitoring.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/namestore/test_namestore_api_monitoring.c b/src/namestore/test_namestore_api_monitoring.c index 895313d1b..c2fe450ce 100644 --- a/src/namestore/test_namestore_api_monitoring.c +++ b/src/namestore/test_namestore_api_monitoring.c | |||
@@ -119,11 +119,6 @@ do_shutdown () | |||
119 | GNUNET_free (privkey2); | 119 | GNUNET_free (privkey2); |
120 | privkey2 = NULL; | 120 | privkey2 = NULL; |
121 | } | 121 | } |
122 | if (NULL != directory) | ||
123 | { | ||
124 | GNUNET_DISK_directory_remove (directory); | ||
125 | GNUNET_free (directory); | ||
126 | } | ||
127 | } | 122 | } |
128 | 123 | ||
129 | 124 | ||
@@ -277,6 +272,7 @@ run (void *cls, | |||
277 | 272 | ||
278 | directory = NULL; | 273 | directory = NULL; |
279 | GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory); | 274 | GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory); |
275 | GNUNET_DISK_directory_remove (directory); | ||
280 | 276 | ||
281 | GNUNET_asprintf(&hostkey_file, | 277 | GNUNET_asprintf(&hostkey_file, |
282 | "zonefiles%s%s", | 278 | "zonefiles%s%s", |
@@ -357,7 +353,14 @@ main (int argc, char *argv[]) | |||
357 | "test_namestore_api.conf", | 353 | "test_namestore_api.conf", |
358 | &run, | 354 | &run, |
359 | NULL)) | 355 | NULL)) |
360 | return 1; | 356 | { |
357 | res = 1; | ||
358 | } | ||
359 | if (NULL != directory) | ||
360 | { | ||
361 | GNUNET_DISK_directory_remove (directory); | ||
362 | GNUNET_free (directory); | ||
363 | } | ||
361 | return res; | 364 | return res; |
362 | } | 365 | } |
363 | 366 | ||