-add identity service to standard build
[oweals/gnunet.git] / src / nse / test_nse_multipeer.c
index ec83e3e8aa736544ff249afb72115de09e981cac..9ae3a7aac03d7088a1c1005f8ee70ffceb156744 100644 (file)
@@ -19,7 +19,6 @@
 */
 /**
  * @file nse/test_nse_multipeer.c
- *
  * @brief Testcase for the network size estimation service.  Starts
  *        a peergroup with a given number of peers, then waits to
  *        receive size estimates from each peer.  Expects to wait
@@ -105,6 +104,7 @@ handle_estimate (void *cls, struct GNUNET_TIME_Absolute timestamp,
           estimate, std_dev,
            GNUNET_NSE_log_estimate_to_n (estimate), 
           NUM_PEERS);
+  ok = 0;
 }
 
 
@@ -181,11 +181,17 @@ nse_disconnect_adapter (void *cls,
  * @param cls closure
  * @param num_peers number of peers in 'peers'
  * @param peers handle to peers run in the testbed
+ * @param links_succeeded the number of overlay link connection attempts that
+ *          succeeded
+ * @param links_failed the number of overlay link connection attempts that
+ *          failed
  */
 static void
 run (void *cls,
      unsigned int num_peers,
-     struct GNUNET_TESTBED_Peer **peers)
+     struct GNUNET_TESTBED_Peer **peers,
+     unsigned int links_succeeded,
+     unsigned int links_failed)
 {
   unsigned int i;
 
@@ -214,11 +220,11 @@ int
 main (int argc, char *argv[])
 {
   ok = 1;
-  GNUNET_TESTBED_test_run ("test-nse-multipeer",
-                          "test_nse.conf",
-                          NUM_PEERS,
-                          0, NULL, NULL,
-                          &run, NULL);
+  (void) GNUNET_TESTBED_test_run ("test-nse-multipeer",
+                                  "test_nse.conf",
+                                  NUM_PEERS,
+                                  0, NULL, NULL,
+                                  &run, NULL);
   return ok;
 }