gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r27664 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r27664 - gnunet/src/mesh
Date: Thu, 27 Jun 2013 20:02:56 +0200

Author: bartpolot
Date: 2013-06-27 20:02:56 +0200 (Thu, 27 Jun 2013)
New Revision: 27664

Modified:
   gnunet/src/mesh/test_mesh2_local.c
Log:
- fix success condition

Modified: gnunet/src/mesh/test_mesh2_local.c
===================================================================
--- gnunet/src/mesh/test_mesh2_local.c  2013-06-27 16:12:42 UTC (rev 27663)
+++ gnunet/src/mesh/test_mesh2_local.c  2013-06-27 18:02:56 UTC (rev 27664)
@@ -162,13 +162,9 @@
 {
   long id = (long) cls;
 
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "incoming tunnel closed\n");
-  if (id != 2)
-  {
-    GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
-                "received closing tunnel on peer != 2\n");
-    result = GNUNET_SYSERR;
-  }
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              "incoming tunnel closed at peer %ld\n",
+              id);
 }
 
 
@@ -292,7 +288,11 @@
   if (0 != GNUNET_TESTING_peer_run ("test-mesh-local",
                                     "test_mesh2.conf",
                                 &run, NULL))
-    return 1;
+  {
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "run failed\n");
+    return 2;
+  }
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Final result: %d\n", result);
   return (result == GNUNET_OK) ? 0 : 1;
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]