From: Nathan S. Evans Date: Tue, 23 Feb 2010 11:54:13 +0000 (+0000) Subject: test case change, better test of core perhaps X-Git-Tag: initial-import-from-subversion-38251~22623 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9c33336202e5a0e0ab610ef224cb4437f50c244d;p=oweals%2Fgnunet.git test case change, better test of core perhaps --- 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, { #if VERBOSE GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "Receiving message from `%4s'.\n", GNUNET_i2s (peer)); + "Receiving message from `%4s' of type %d.\n", GNUNET_i2s (peer), ntohs(message->type)); #endif GNUNET_SCHEDULER_cancel (sched, die_task); GNUNET_SCHEDULER_add_now (sched, &finish_testing, NULL); @@ -113,22 +113,6 @@ disconnect_notify (void *cls, #endif } - -static int -inbound_notify (void *cls, - const struct GNUNET_PeerIdentity *other, - const struct GNUNET_MessageHeader *message, - struct GNUNET_TIME_Relative latency, - uint32_t distance) -{ -#if VERBOSE - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other)); -#endif - return GNUNET_OK; -} - - static int outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, @@ -229,7 +213,7 @@ init_notify (void *cls, NULL, &connect_notify, &disconnect_notify, - &inbound_notify, + NULL, GNUNET_YES, &outbound_notify, GNUNET_YES, handlers); } @@ -281,7 +265,7 @@ send_test_messages () NULL, &connect_notify, &disconnect_notify, - &inbound_notify, + NULL, GNUNET_YES, &outbound_notify, GNUNET_YES, handlers); } @@ -398,7 +382,7 @@ my_cb (void *cls, (GNUNET_TIME_UNIT_MINUTES, 5), &end_badly, NULL); create_topology (); - ok = 0; + ok = 477; } }