summaryrefslogtreecommitdiff
path: root/src/transport/transport-testing.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-07-02 11:02:31 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-07-02 11:02:31 +0000
commitebfd3a019674280bb14fb3ac52f1f8ebd057ea35 (patch)
treee4e71af1face88d7ebbdcd2f7fa098b9f646bd02 /src/transport/transport-testing.c
parent8e4a7c4f930757ce1bcab560c853caa7608fd930 (diff)
- new test
Diffstat (limited to 'src/transport/transport-testing.c')
-rw-r--r--src/transport/transport-testing.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/transport/transport-testing.c b/src/transport/transport-testing.c
index 8f75c8109..b3c3a9399 100644
--- a/src/transport/transport-testing.c
+++ b/src/transport/transport-testing.c
@@ -633,7 +633,12 @@ GNUNET_TRANSPORT_TESTING_init ()
/* Init testing the testing lib */
tth->tl_system = GNUNET_TESTING_system_create ("transport-testing",
"127.0.0.1");
-
+ if (NULL == tth->tl_system)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _("Failed to initialize testing library!\n"));
+ GNUNET_free (tth);
+ return NULL;
+ }
tth->hostkey_data = NULL;
const char *hostkeys_file = "../../contrib/testing_hostkeys.dat";