aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-11-08 17:17:33 +0000
committerChristian Grothoff <christian@grothoff.org>2009-11-08 17:17:33 +0000
commit9308175caf833485c55854deeffd0e28137baf9a (patch)
treeafdeb1a3b859e3a8027dfa361417041d167fb5db /src/testing/testing.c
parenta7a976060536ea4f95b8036194e5e5a68567d0ce (diff)
downloadgnunet-9308175caf833485c55854deeffd0e28137baf9a.tar.gz
gnunet-9308175caf833485c55854deeffd0e28137baf9a.zip
misc. bugfixes and API improvements
Diffstat (limited to 'src/testing/testing.c')
-rw-r--r--src/testing/testing.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/testing/testing.c b/src/testing/testing.c
index e34e7a9ac..6edefb14a 100644
--- a/src/testing/testing.c
+++ b/src/testing/testing.c
@@ -40,13 +40,13 @@
40#include "gnunet_testing_lib.h" 40#include "gnunet_testing_lib.h"
41#include "gnunet_transport_service.h" 41#include "gnunet_transport_service.h"
42 42
43#define DEBUG_TESTING GNUNET_NO 43#define DEBUG_TESTING GNUNET_YES
44 44
45/** 45/**
46 * How long do we wait after starting gnunet-service-arm 46 * How long do we wait after starting gnunet-service-arm
47 * for the core service to be alive? 47 * for the core service to be alive?
48 */ 48 */
49#define ARM_START_WAIT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10) 49#define ARM_START_WAIT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 60)
50 50
51/** 51/**
52 * How many times are we willing to try to wait for "scp" or 52 * How many times are we willing to try to wait for "scp" or
@@ -236,6 +236,7 @@ testing_init (void *cls,
236 d->cb = NULL; 236 d->cb = NULL;
237 if (server == NULL) 237 if (server == NULL)
238 { 238 {
239 d->server = NULL;
239 if (GNUNET_YES == d->dead) 240 if (GNUNET_YES == d->dead)
240 GNUNET_TESTING_daemon_stop (d, d->dead_cb, d->dead_cb_cls); 241 GNUNET_TESTING_daemon_stop (d, d->dead_cb, d->dead_cb_cls);
241 else if (NULL != cb) 242 else if (NULL != cb)
@@ -428,15 +429,15 @@ start_fsm (void *cls,
428 "gnunet-service-arm"); 429 "gnunet-service-arm");
429#endif 430#endif
430 d->phase = SP_START_CORE; 431 d->phase = SP_START_CORE;
431 GNUNET_CORE_connect (d->sched, 432 d->server = GNUNET_CORE_connect (d->sched,
432 d->cfg, 433 d->cfg,
433 ARM_START_WAIT, 434 ARM_START_WAIT,
434 d, 435 d,
435 &testing_init, 436 &testing_init,
436 NULL, NULL, NULL, 437 NULL, NULL, NULL,
437 NULL, GNUNET_NO, 438 NULL, GNUNET_NO,
438 NULL, GNUNET_NO, 439 NULL, GNUNET_NO,
439 no_handlers); 440 no_handlers);
440 break; 441 break;
441 case SP_START_CORE: 442 case SP_START_CORE:
442 GNUNET_break (0); 443 GNUNET_break (0);