projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
232fe05
)
- additional checks
author
Matthias Wachs
<wachs@net.in.tum.de>
Fri, 6 Jul 2012 09:24:29 +0000
(09:24 +0000)
committer
Matthias Wachs
<wachs@net.in.tum.de>
Fri, 6 Jul 2012 09:24:29 +0000
(09:24 +0000)
src/core/test_core_api_send_to_self.c
patch
|
blob
|
history
diff --git
a/src/core/test_core_api_send_to_self.c
b/src/core/test_core_api_send_to_self.c
index 75a2be1c562e0dbd9433490a930506bffc79a2aa..626c5e15ea35b71d73ab3166db01439ba3006acc 100644
(file)
--- 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;