[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r17723 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r17723 - gnunet/src/mesh |
Date: |
Mon, 24 Oct 2011 16:29:53 +0200 |
Author: bartpolot
Date: 2011-10-24 16:29:53 +0200 (Mon, 24 Oct 2011)
New Revision: 17723
Modified:
gnunet/src/mesh/test_mesh_small.c
Log:
Changed testcase to not die on unknown peer, log warning instead
Modified: gnunet/src/mesh/test_mesh_small.c
===================================================================
--- gnunet/src/mesh/test_mesh_small.c 2011-10-24 14:04:35 UTC (rev 17722)
+++ gnunet/src/mesh/test_mesh_small.c 2011-10-24 14:29:53 UTC (rev 17723)
@@ -477,11 +477,11 @@
do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
{
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "***************** test: test_task\n");
- GNUNET_MESH_peer_request_connect_add(t, &d2->id);
if (test == MULTICAST)
{
GNUNET_MESH_peer_request_connect_add(t, &d3->id);
}
+ GNUNET_MESH_peer_request_connect_add(t, &d2->id);
if (GNUNET_SCHEDULER_NO_TASK != disconnect_task)
{
GNUNET_SCHEDULER_cancel (disconnect_task);
@@ -519,7 +519,14 @@
{
p2 = GNUNET_PEER_search(second);
GNUNET_assert(p2 < num_peers);
- GNUNET_assert(p2 > 0);
+ if (p2 == 0)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ "***************** test: %s is UNKNOWN!?\n",
+ GNUNET_i2s(second));
+ GNUNET_break (0);
+ return;
+ }
mesh_peers[p2]++;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"***************** test: %s IS a neighbor\n",
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r17723 - gnunet/src/mesh,
gnunet <=