X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fnse%2Ftest_nse_multipeer.c;h=9ae3a7aac03d7088a1c1005f8ee70ffceb156744;hb=35cc1d8eeb2ead1fc57ff1a5d60fb4ca7d1d1216;hp=ec83e3e8aa736544ff249afb72115de09e981cac;hpb=5fba3531d7afd2ef67045f4d9e7af72c36c53c95;p=oweals%2Fgnunet.git diff --git a/src/nse/test_nse_multipeer.c b/src/nse/test_nse_multipeer.c index ec83e3e8a..9ae3a7aac 100644 --- a/src/nse/test_nse_multipeer.c +++ b/src/nse/test_nse_multipeer.c @@ -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; }