aboutsummaryrefslogtreecommitdiff
path: root/src/testing/test_testing_topology.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-02-26 10:58:00 +0000
committerNathan S. Evans <evans@in.tum.de>2010-02-26 10:58:00 +0000
commita87f456787c26f1387e37b404f5d1ce23ee17bd2 (patch)
treea5962ef4f4f71c7cd02e343b1f05a221f49a1ce6 /src/testing/test_testing_topology.c
parenteb98ca5b7a3d2377f2422d453b5b0fe445cf6329 (diff)
downloadgnunet-a87f456787c26f1387e37b404f5d1ce23ee17bd2.tar.gz
gnunet-a87f456787c26f1387e37b404f5d1ce23ee17bd2.zip
add support for multi topology testing to makefile (all work for me, but only clique is currently a testcase)
Diffstat (limited to 'src/testing/test_testing_topology.c')
-rw-r--r--src/testing/test_testing_topology.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/testing/test_testing_topology.c b/src/testing/test_testing_topology.c
index a8d1a4a8c..a0438f7be 100644
--- a/src/testing/test_testing_topology.c
+++ b/src/testing/test_testing_topology.c
@@ -25,7 +25,7 @@
25#include "gnunet_testing_lib.h" 25#include "gnunet_testing_lib.h"
26#include "gnunet_core_service.h" 26#include "gnunet_core_service.h"
27 27
28#define VERBOSE GNUNET_YES 28#define VERBOSE GNUNET_NO
29 29
30/** 30/**
31 * How long until we give up on connecting the peers? 31 * How long until we give up on connecting the peers?
@@ -250,7 +250,9 @@ static size_t
250transmit_ready (void *cls, size_t size, void *buf) 250transmit_ready (void *cls, size_t size, void *buf)
251{ 251{
252 struct GNUNET_MessageHeader *m; 252 struct GNUNET_MessageHeader *m;
253#if VERBOSE
253 struct GNUNET_PeerIdentity *peer = cls; 254 struct GNUNET_PeerIdentity *peer = cls;
255#endif
254 GNUNET_assert (buf != NULL); 256 GNUNET_assert (buf != NULL);
255 m = (struct GNUNET_MessageHeader *) buf; 257 m = (struct GNUNET_MessageHeader *) buf;
256 m->type = htons (MTYPE); 258 m->type = htons (MTYPE);
@@ -258,8 +260,8 @@ transmit_ready (void *cls, size_t size, void *buf)
258 260
259 transmit_ready_called++; 261 transmit_ready_called++;
260#if VERBOSE 262#if VERBOSE
261 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 263 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
262 "transmit ready for peer %s\ntransmit_ready's scheduled %d, transmit_ready's called %d\n", GNUNET_i2s(peer), transmit_ready_scheduled, transmit_ready_called); 264 "transmit ready for peer %s\ntransmit_ready's scheduled %d, transmit_ready's called %d\n", GNUNET_i2s(peer), transmit_ready_scheduled, transmit_ready_called);
263#endif 265#endif
264 GNUNET_SCHEDULER_add_now(sched, &schedule_transmission, NULL); 266 GNUNET_SCHEDULER_add_now(sched, &schedule_transmission, NULL);
265 return sizeof (struct GNUNET_MessageHeader); 267 return sizeof (struct GNUNET_MessageHeader);