[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r10423 - gnunet/src/testing
From: |
gnunet |
Subject: |
[GNUnet-SVN] r10423 - gnunet/src/testing |
Date: |
Tue, 23 Feb 2010 12:54:13 +0100 |
Author: nevans
Date: 2010-02-23 12:54:13 +0100 (Tue, 23 Feb 2010)
New Revision: 10423
Modified:
gnunet/src/testing/test_testing_topology_clique.c
Log:
test case change, better test of core perhaps
Modified: gnunet/src/testing/test_testing_topology_clique.c
===================================================================
--- gnunet/src/testing/test_testing_topology_clique.c 2010-02-23 10:30:46 UTC
(rev 10422)
+++ gnunet/src/testing/test_testing_topology_clique.c 2010-02-23 11:54:13 UTC
(rev 10423)
@@ -81,7 +81,7 @@
{
#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,23 +113,7 @@
#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,
const struct GNUNET_MessageHeader *message,
@@ -229,7 +213,7 @@
NULL,
&connect_notify,
&disconnect_notify,
- &inbound_notify,
+ NULL,
GNUNET_YES,
&outbound_notify, GNUNET_YES, handlers);
}
@@ -281,7 +265,7 @@
NULL,
&connect_notify,
&disconnect_notify,
- &inbound_notify,
+ NULL,
GNUNET_YES, &outbound_notify, GNUNET_YES, handlers);
}
@@ -398,7 +382,7 @@
(GNUNET_TIME_UNIT_MINUTES, 5),
&end_badly, NULL);
create_topology ();
- ok = 0;
+ ok = 477;
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r10423 - gnunet/src/testing,
gnunet <=