From: Matthias Wachs Date: Fri, 6 Jul 2012 09:24:29 +0000 (+0000) Subject: - additional checks X-Git-Tag: initial-import-from-subversion-38251~12616 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=793754fc2c9634e68fbecd82be55b67b1839bc04;p=oweals%2Fgnunet.git - additional checks --- diff --git a/src/core/test_core_api_send_to_self.c b/src/core/test_core_api_send_to_self.c index 75a2be1c5..626c5e15e 100644 --- a/src/core/test_core_api_send_to_self.c +++ b/src/core/test_core_api_send_to_self.c @@ -78,6 +78,8 @@ receive (void *cls, const struct GNUNET_PeerIdentity *other, GNUNET_SCHEDULER_cancel (die_task); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received message from peer %s\n", GNUNET_i2s (other)); + GNUNET_assert (GNUNET_MESSAGE_TYPE_DUMMY == ntohs (message->type)); + GNUNET_assert (0 == memcmp (other, &myself, sizeof (myself))); GNUNET_SCHEDULER_add_now (&cleanup, NULL); ret = 0; return GNUNET_OK;