aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/test_testbed_api_controllerlink.c
diff options
context:
space:
mode:
authorharsha <harsha@140774ce-b5e7-0310-ab8b-a85725594a96>2012-12-03 17:09:01 +0000
committerharsha <harsha@140774ce-b5e7-0310-ab8b-a85725594a96>2012-12-03 17:09:01 +0000
commite6f8fd06592caf2cf1412d8f7ca6df2ee9c5f8f3 (patch)
tree7dbd78ea0e12045622428b7604b77c7b65980b4c /src/testbed/test_testbed_api_controllerlink.c
parentd11b4b8b006a4dc5e40fac34076470846cb7633d (diff)
- check the host compatibility check status
git-svn-id: https://gnunet.org/svn/gnunet@25202 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/testbed/test_testbed_api_controllerlink.c')
-rw-r--r--src/testbed/test_testbed_api_controllerlink.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testbed/test_testbed_api_controllerlink.c b/src/testbed/test_testbed_api_controllerlink.c
index cea04cb633..7bcb8b5a7c 100644
--- a/src/testbed/test_testbed_api_controllerlink.c
+++ b/src/testbed/test_testbed_api_controllerlink.c
@@ -652,6 +652,13 @@ static void
host_habitable_cb (void *cls, const struct GNUNET_TESTBED_Host *_host, int status)
{
hc_handle = NULL;
+ if (GNUNET_NO == status)
+ {
+ LOG (GNUNET_ERROR_TYPE_ERROR, "Cannot start testbed on localhost\n");
+ GNUNET_SCHEDULER_cancel (abort_task);
+ abort_task = GNUNET_SCHEDULER_add_now (&do_abort, NULL);
+ return;
+ }
cp = GNUNET_TESTBED_controller_start ("127.0.0.1", host, cfg, status_cb,
NULL);
}