gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

commit 2c8cfa261dc565534ad4309defea0c281010c650
parent 12016bca6a6a34d779059fefa6ec854d4df684bf
Author: Bart Polot <bart@net.in.tum.de>
Date:   Mon, 21 Jul 2014 00:15:06 +0000

- warn when test goes wrong

Diffstat:
Msrc/cadet/test_cadet.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/cadet/test_cadet.c b/src/cadet/test_cadet.c @@ -432,6 +432,7 @@ data_callback (void *cls, struct GNUNET_CADET_Channel *channel, long client = (long) cls; long expected_target_client; uint32_t *data; + uint32_t payload; ok++; @@ -466,7 +467,9 @@ data_callback (void *cls, struct GNUNET_CADET_Channel *channel, } GNUNET_log (GNUNET_ERROR_TYPE_INFO, " ok: (%d/%d)\n", ok, ok_goal); data = (uint32_t *) &message[1]; - GNUNET_log (GNUNET_ERROR_TYPE_INFO, " payload: (%u)\n", ntohl (*data)); + payload = ntohl (*data); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, " payload: (%u)\n", payload); + GNUNET_break (payload == data_received); if (SPEED == test && GNUNET_YES == test_backwards) { expected_target_client = 0L;