aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-06-27 18:02:56 +0000
committerBart Polot <bart@net.in.tum.de>2013-06-27 18:02:56 +0000
commite7724d5078023b8daace5b29fdb66b5defb93a5a (patch)
tree582593242755e939780ef3aa5f82f5c400eb6691 /src
parent1c24adeb028177ede38ca9ee5e789b88b4014a79 (diff)
downloadgnunet-e7724d5078023b8daace5b29fdb66b5defb93a5a.tar.gz
gnunet-e7724d5078023b8daace5b29fdb66b5defb93a5a.zip
- fix success condition
Diffstat (limited to 'src')
-rw-r--r--src/mesh/test_mesh2_local.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mesh/test_mesh2_local.c b/src/mesh/test_mesh2_local.c
index 6dba96cb9..483135afa 100644
--- a/src/mesh/test_mesh2_local.c
+++ b/src/mesh/test_mesh2_local.c
@@ -162,13 +162,9 @@ inbound_end (void *cls, const struct GNUNET_MESH_Tunnel *tunnel,
162{ 162{
163 long id = (long) cls; 163 long id = (long) cls;
164 164
165 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "incoming tunnel closed\n"); 165 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
166 if (id != 2) 166 "incoming tunnel closed at peer %ld\n",
167 { 167 id);
168 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
169 "received closing tunnel on peer != 2\n");
170 result = GNUNET_SYSERR;
171 }
172} 168}
173 169
174 170
@@ -292,7 +288,11 @@ main (int argc, char *argv[])
292 if (0 != GNUNET_TESTING_peer_run ("test-mesh-local", 288 if (0 != GNUNET_TESTING_peer_run ("test-mesh-local",
293 "test_mesh2.conf", 289 "test_mesh2.conf",
294 &run, NULL)) 290 &run, NULL))
295 return 1; 291 {
292 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "run failed\n");
293 return 2;
294 }
295 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Final result: %d\n", result);
296 return (result == GNUNET_OK) ? 0 : 1; 296 return (result == GNUNET_OK) ? 0 : 1;
297} 297}
298 298