aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-02-23 11:54:13 +0000
committerNathan S. Evans <evans@in.tum.de>2010-02-23 11:54:13 +0000
commit9c33336202e5a0e0ab610ef224cb4437f50c244d (patch)
tree37466a60ea67e31857dc6e26f02c65ce98abfe62 /src
parentf3384e5cee57675dbf8675777cfc7b486052ba6d (diff)
downloadgnunet-9c33336202e5a0e0ab610ef224cb4437f50c244d.tar.gz
gnunet-9c33336202e5a0e0ab610ef224cb4437f50c244d.zip
test case change, better test of core perhaps
Diffstat (limited to 'src')
-rw-r--r--src/testing/test_testing_topology_clique.c24
1 files changed, 4 insertions, 20 deletions
diff --git a/src/testing/test_testing_topology_clique.c b/src/testing/test_testing_topology_clique.c
index a51d77f98..0521145bb 100644
--- a/src/testing/test_testing_topology_clique.c
+++ b/src/testing/test_testing_topology_clique.c
@@ -81,7 +81,7 @@ process_mtype (void *cls,
81{ 81{
82#if VERBOSE 82#if VERBOSE
83 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 83 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
84 "Receiving message from `%4s'.\n", GNUNET_i2s (peer)); 84 "Receiving message from `%4s' of type %d.\n", GNUNET_i2s (peer), ntohs(message->type));
85#endif 85#endif
86 GNUNET_SCHEDULER_cancel (sched, die_task); 86 GNUNET_SCHEDULER_cancel (sched, die_task);
87 GNUNET_SCHEDULER_add_now (sched, &finish_testing, NULL); 87 GNUNET_SCHEDULER_add_now (sched, &finish_testing, NULL);
@@ -113,22 +113,6 @@ disconnect_notify (void *cls,
113#endif 113#endif
114} 114}
115 115
116
117static int
118inbound_notify (void *cls,
119 const struct GNUNET_PeerIdentity *other,
120 const struct GNUNET_MessageHeader *message,
121 struct GNUNET_TIME_Relative latency,
122 uint32_t distance)
123{
124#if VERBOSE
125 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
126 "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other));
127#endif
128 return GNUNET_OK;
129}
130
131
132static int 116static int
133outbound_notify (void *cls, 117outbound_notify (void *cls,
134 const struct GNUNET_PeerIdentity *other, 118 const struct GNUNET_PeerIdentity *other,
@@ -229,7 +213,7 @@ init_notify (void *cls,
229 NULL, 213 NULL,
230 &connect_notify, 214 &connect_notify,
231 &disconnect_notify, 215 &disconnect_notify,
232 &inbound_notify, 216 NULL,
233 GNUNET_YES, 217 GNUNET_YES,
234 &outbound_notify, GNUNET_YES, handlers); 218 &outbound_notify, GNUNET_YES, handlers);
235 } 219 }
@@ -281,7 +265,7 @@ send_test_messages ()
281 NULL, 265 NULL,
282 &connect_notify, 266 &connect_notify,
283 &disconnect_notify, 267 &disconnect_notify,
284 &inbound_notify, 268 NULL,
285 GNUNET_YES, &outbound_notify, GNUNET_YES, handlers); 269 GNUNET_YES, &outbound_notify, GNUNET_YES, handlers);
286} 270}
287 271
@@ -398,7 +382,7 @@ my_cb (void *cls,
398 (GNUNET_TIME_UNIT_MINUTES, 5), 382 (GNUNET_TIME_UNIT_MINUTES, 5),
399 &end_badly, NULL); 383 &end_badly, NULL);
400 create_topology (); 384 create_topology ();
401 ok = 0; 385 ok = 477;
402 } 386 }
403} 387}
404 388