From cc57e1d42bbfee97247ad7ea1db3fa81ecbf2c08 Mon Sep 17 00:00:00 2001 From: LRN Date: Mon, 9 Dec 2013 17:53:31 +0000 Subject: Remove test home at the beginning and at the VERY end --- .../test_namestore_api_remove_not_existing_record.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/namestore/test_namestore_api_remove_not_existing_record.c') 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 () GNUNET_free (privkey); privkey = NULL; } - if (NULL != directory) - { - GNUNET_DISK_directory_remove (directory); - GNUNET_free (directory); - } GNUNET_SCHEDULER_shutdown (); } @@ -141,6 +136,7 @@ run (void *cls, directory = NULL; GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory); + GNUNET_DISK_directory_remove (directory); endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, &endbadly, NULL); @@ -178,7 +174,14 @@ main (int argc, char *argv[]) "test_namestore_api.conf", &run, NULL)) - return 1; + { + res = 1; + } + if (NULL != directory) + { + GNUNET_DISK_directory_remove (directory); + GNUNET_free (directory); + } return res; } -- cgit v1.2.3