summaryrefslogtreecommitdiff
path: root/src/transport/transport-testing.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-07-02 09:37:55 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-07-02 09:37:55 +0000
commit8e4a7c4f930757ce1bcab560c853caa7608fd930 (patch)
tree47159604f2929867f8230fbcbb291b0c821960e3 /src/transport/transport-testing.c
parent76df6221392b5d56fecf7de4ad7d5e2c7cfb3722 (diff)
- minor changes
Diffstat (limited to 'src/transport/transport-testing.c')
-rw-r--r--src/transport/transport-testing.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/transport/transport-testing.c b/src/transport/transport-testing.c
index 3411f7f43..8f75c8109 100644
--- a/src/transport/transport-testing.c
+++ b/src/transport/transport-testing.c
@@ -608,6 +608,8 @@ GNUNET_TRANSPORT_TESTING_done (struct GNUNET_TRANSPORT_TESTING_handle *tth)
GNUNET_free_non_null (tth->hostkey_data);
+ GNUNET_TESTING_system_destroy (tth->tl_system, GNUNET_YES);
+
GNUNET_free (tth);
tth = NULL;
}
@@ -625,9 +627,14 @@ GNUNET_TRANSPORT_TESTING_init ()
uint64_t fs;
uint64_t total_hostkeys;
-
/* prepare hostkeys */
tth = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_TESTING_handle));
+
+ /* Init testing the testing lib */
+ tth->tl_system = GNUNET_TESTING_system_create ("transport-testing",
+ "127.0.0.1");
+
+
tth->hostkey_data = NULL;
const char *hostkeys_file = "../../contrib/testing_hostkeys.dat";