- minor changes
authorMatthias Wachs <wachs@net.in.tum.de>
Mon, 2 Jul 2012 09:37:55 +0000 (09:37 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Mon, 2 Jul 2012 09:37:55 +0000 (09:37 +0000)
src/transport/transport-testing.c
src/transport/transport-testing.h

index 3411f7f43c30f4f7f9fdbd4929af7e9e6f73ce34..8f75c810988dc55045589c790c477f84d8e418e7 100644 (file)
@@ -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";
 
index 639eff018e931e98b0971474824db034df7d1f81..3129bc0a03730b1316a67109854387721283b5b1 100644 (file)
@@ -182,6 +182,11 @@ struct GNUNET_TRANSPORT_TESTING_handle
   struct ConnectingContext *cc_head;
   struct ConnectingContext *cc_tail;
 
+  /**
+   * Testing library system handle
+   */
+  struct GNUNET_TESTING_System *tl_system;
+
   char *hostkey_data;
   int hostkeys_total;
   int hostkeys_last;