aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_monitoring_existing.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-11-28 08:10:19 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-11-28 08:10:19 +0000
commit55942930db8ad9c07d1ee5878bdb414495743c7f (patch)
treea729b931ac0af2fd2c5fd981866372cd66d9e04a /src/namestore/test_namestore_api_monitoring_existing.c
parent2e785bfc13a5e12559c1ceec0879891ce9601fe7 (diff)
downloadgnunet-55942930db8ad9c07d1ee5878bdb414495743c7f.tar.gz
gnunet-55942930db8ad9c07d1ee5878bdb414495743c7f.zip
- Tests did not clean up: TEST_HOME with namestore db was not removed after test
Therefore test_namestore_api_remove_not_existing_record passed when executed on a clean system, but failed if ran after a previous test adding a record - remove unused file namestore/test_namestore_api_put.c
Diffstat (limited to 'src/namestore/test_namestore_api_monitoring_existing.c')
-rw-r--r--src/namestore/test_namestore_api_monitoring_existing.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/namestore/test_namestore_api_monitoring_existing.c b/src/namestore/test_namestore_api_monitoring_existing.c
index 51cd1205d..9051a8d89 100644
--- a/src/namestore/test_namestore_api_monitoring_existing.c
+++ b/src/namestore/test_namestore_api_monitoring_existing.c
@@ -57,6 +57,7 @@ static struct GNUNET_GNSRECORD_Data *s_rd_3;
57 57
58struct GNUNET_NAMESTORE_QueueEntry * ns_ops[3]; 58struct GNUNET_NAMESTORE_QueueEntry * ns_ops[3];
59 59
60static char *directory;
60 61
61static void 62static void
62do_shutdown () 63do_shutdown ()
@@ -119,6 +120,11 @@ do_shutdown ()
119 GNUNET_free (privkey2); 120 GNUNET_free (privkey2);
120 privkey2 = NULL; 121 privkey2 = NULL;
121 } 122 }
123 if (NULL != directory)
124 {
125 GNUNET_DISK_directory_remove (directory);
126 GNUNET_free (directory);
127 }
122} 128}
123 129
124 130
@@ -280,6 +286,9 @@ run (void *cls,
280{ 286{
281 char *hostkey_file; 287 char *hostkey_file;
282 288
289 directory = NULL;
290 GNUNET_CONFIGURATION_get_value_string(mycfg, "PATHS", "GNUNET_TEST_HOME", &directory);
291
283 res = 1; 292 res = 1;
284 293
285 GNUNET_asprintf(&hostkey_file, 294 GNUNET_asprintf(&hostkey_file,