diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-07-21 20:48:40 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-07-21 20:48:40 +0000 |
commit | b05f920bfa907476b618a24bd78487db8873d2a1 (patch) | |
tree | fad22297a66787044837faa4c2c3459f48d6bb85 /src/testing/testing.c | |
parent | afec51a8dd5d9f77a00d902acd7b5efc04675298 (diff) | |
download | gnunet-b05f920bfa907476b618a24bd78487db8873d2a1.tar.gz gnunet-b05f920bfa907476b618a24bd78487db8873d2a1.zip |
add code to enable checking if transport's idea of our peer identity matches that of core, etc -- might help diagnose certain bugs
Diffstat (limited to 'src/testing/testing.c')
-rw-r--r-- | src/testing/testing.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/testing/testing.c b/src/testing/testing.c index d12892fcc..3bc6c98da 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c | |||
@@ -161,7 +161,9 @@ testing_init (void *cls, | |||
161 | 161 | ||
162 | 162 | ||
163 | d->th = GNUNET_TRANSPORT_connect (d->sched, | 163 | d->th = GNUNET_TRANSPORT_connect (d->sched, |
164 | d->cfg, d, NULL, NULL, NULL); | 164 | d->cfg, |
165 | &d->id, | ||
166 | d, NULL, NULL, NULL); | ||
165 | if (d->th == NULL) | 167 | if (d->th == NULL) |
166 | { | 168 | { |
167 | if (GNUNET_YES == d->dead) | 169 | if (GNUNET_YES == d->dead) |
@@ -1402,7 +1404,9 @@ GNUNET_TESTING_daemons_connect (struct GNUNET_TESTING_Daemon *d1, | |||
1402 | #endif | 1404 | #endif |
1403 | 1405 | ||
1404 | ctx->d2th = GNUNET_TRANSPORT_connect (d2->sched, | 1406 | ctx->d2th = GNUNET_TRANSPORT_connect (d2->sched, |
1405 | d2->cfg, d2, NULL, NULL, NULL); | 1407 | d2->cfg, |
1408 | &d2->id, | ||
1409 | d2, NULL, NULL, NULL); | ||
1406 | if (ctx->d2th == NULL) | 1410 | if (ctx->d2th == NULL) |
1407 | { | 1411 | { |
1408 | GNUNET_CORE_disconnect(ctx->d1core); | 1412 | GNUNET_CORE_disconnect(ctx->d1core); |
@@ -1455,7 +1459,9 @@ reattempt_daemons_connect (void *cls, const struct GNUNET_SCHEDULER_TaskContext | |||
1455 | } | 1459 | } |
1456 | 1460 | ||
1457 | ctx->d2th = GNUNET_TRANSPORT_connect (ctx->d2->sched, | 1461 | ctx->d2th = GNUNET_TRANSPORT_connect (ctx->d2->sched, |
1458 | ctx->d2->cfg, ctx->d2, NULL, NULL, NULL); | 1462 | ctx->d2->cfg, |
1463 | &ctx->d2->id, | ||
1464 | ctx->d2, NULL, NULL, NULL); | ||
1459 | if (ctx->d2th == NULL) | 1465 | if (ctx->d2th == NULL) |
1460 | { | 1466 | { |
1461 | GNUNET_CORE_disconnect(ctx->d1core); | 1467 | GNUNET_CORE_disconnect(ctx->d1core); |