diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-03-28 16:47:02 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-03-28 16:47:02 +0000 |
commit | 949f21f03df9f08b0a73c3e47a798e63790edf7f (patch) | |
tree | 52f56432e08a0b83cfc155e1af45e1587d32073d /src/stream | |
parent | 8f8e6a5bb1ccbb7d1311332ec1cc3a340bdd621f (diff) | |
download | gnunet-949f21f03df9f08b0a73c3e47a798e63790edf7f.tar.gz gnunet-949f21f03df9f08b0a73c3e47a798e63790edf7f.zip |
provide how many links succeeded and how many failed in test master callback
from GNUNET_TESTBED_run() and GNUNET_TESTBED_test_run() functions
Diffstat (limited to 'src/stream')
-rw-r--r-- | src/stream/perf_stream_api.c | 8 | ||||
-rw-r--r-- | src/stream/test_stream_2peers.c | 8 | ||||
-rw-r--r-- | src/stream/test_stream_2peers_halfclose.c | 8 |
3 files changed, 21 insertions, 3 deletions
diff --git a/src/stream/perf_stream_api.c b/src/stream/perf_stream_api.c index aa534ce09..aa54b6bfa 100644 --- a/src/stream/perf_stream_api.c +++ b/src/stream/perf_stream_api.c | |||
@@ -950,10 +950,16 @@ controller_event_cb (void *cls, | |||
950 | * @param cls closure | 950 | * @param cls closure |
951 | * @param num_peers number of peers in 'peers' | 951 | * @param num_peers number of peers in 'peers' |
952 | * @param peers handle to peers run in the testbed | 952 | * @param peers handle to peers run in the testbed |
953 | * @param links_succeeded the number of overlay link connection attempts that | ||
954 | * succeeded | ||
955 | * @param links_failed the number of overlay link connection attempts that | ||
956 | * failed | ||
953 | */ | 957 | */ |
954 | static void | 958 | static void |
955 | test_master (void *cls, unsigned int num_peers_, | 959 | test_master (void *cls, unsigned int num_peers_, |
956 | struct GNUNET_TESTBED_Peer **peers) | 960 | struct GNUNET_TESTBED_Peer **peers, |
961 | unsigned int links_succeeded, | ||
962 | unsigned int links_failed) | ||
957 | { | 963 | { |
958 | GNUNET_assert (NULL != peers); | 964 | GNUNET_assert (NULL != peers); |
959 | GNUNET_assert (NULL != peers[0]); | 965 | GNUNET_assert (NULL != peers[0]); |
diff --git a/src/stream/test_stream_2peers.c b/src/stream/test_stream_2peers.c index 012643980..b920d4071 100644 --- a/src/stream/test_stream_2peers.c +++ b/src/stream/test_stream_2peers.c | |||
@@ -618,10 +618,16 @@ controller_event_cb (void *cls, | |||
618 | * @param cls closure | 618 | * @param cls closure |
619 | * @param num_peers number of peers in 'peers' | 619 | * @param num_peers number of peers in 'peers' |
620 | * @param peers handle to peers run in the testbed | 620 | * @param peers handle to peers run in the testbed |
621 | * @param links_succeeded the number of overlay link connection attempts that | ||
622 | * succeeded | ||
623 | * @param links_failed the number of overlay link connection attempts that | ||
624 | * failed | ||
621 | */ | 625 | */ |
622 | static void | 626 | static void |
623 | test_master (void *cls, unsigned int num_peers, | 627 | test_master (void *cls, unsigned int num_peers, |
624 | struct GNUNET_TESTBED_Peer **peers) | 628 | struct GNUNET_TESTBED_Peer **peers, |
629 | unsigned int links_succeeded, | ||
630 | unsigned int links_failed) | ||
625 | { | 631 | { |
626 | GNUNET_assert (NULL != peers); | 632 | GNUNET_assert (NULL != peers); |
627 | GNUNET_assert (NULL != peers[0]); | 633 | GNUNET_assert (NULL != peers[0]); |
diff --git a/src/stream/test_stream_2peers_halfclose.c b/src/stream/test_stream_2peers_halfclose.c index 95f5aa9fa..930a2429e 100644 --- a/src/stream/test_stream_2peers_halfclose.c +++ b/src/stream/test_stream_2peers_halfclose.c | |||
@@ -842,10 +842,16 @@ controller_event_cb (void *cls, | |||
842 | * @param cls closure | 842 | * @param cls closure |
843 | * @param num_peers number of peers in 'peers' | 843 | * @param num_peers number of peers in 'peers' |
844 | * @param peers handle to peers run in the testbed | 844 | * @param peers handle to peers run in the testbed |
845 | * @param links_succeeded the number of overlay link connection attempts that | ||
846 | * succeeded | ||
847 | * @param links_failed the number of overlay link connection attempts that | ||
848 | * failed | ||
845 | */ | 849 | */ |
846 | static void | 850 | static void |
847 | test_master (void *cls, unsigned int num_peers, | 851 | test_master (void *cls, unsigned int num_peers, |
848 | struct GNUNET_TESTBED_Peer **peers) | 852 | struct GNUNET_TESTBED_Peer **peers, |
853 | unsigned int links_succeeded, | ||
854 | unsigned int links_failed) | ||
849 | { | 855 | { |
850 | GNUNET_assert (NULL != peers); | 856 | GNUNET_assert (NULL != peers); |
851 | GNUNET_assert (NULL != peers[0]); | 857 | GNUNET_assert (NULL != peers[0]); |