diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-12-11 12:27:41 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-12-11 12:27:41 +0000 |
commit | 15d78567a6dfa9f4644321e094c8b0eec717ec4e (patch) | |
tree | 4fe9977c8df426847c166ae9dfccfe20196a8dc9 /src/stream | |
parent | c70d10589c4189a255066032bdd1d72204641247 (diff) | |
download | gnunet-15d78567a6dfa9f4644321e094c8b0eec717ec4e.tar.gz gnunet-15d78567a6dfa9f4644321e094c8b0eec717ec4e.zip |
GNUNET_TESTBED_test_run to return status
Diffstat (limited to 'src/stream')
-rw-r--r-- | src/stream/perf_stream_api.c | 5 | ||||
-rw-r--r-- | src/stream/test_stream_2peers.c | 8 | ||||
-rw-r--r-- | src/stream/test_stream_2peers_halfclose.c | 8 |
3 files changed, 13 insertions, 8 deletions
diff --git a/src/stream/perf_stream_api.c b/src/stream/perf_stream_api.c index a3f188a8f..9150ca6e9 100644 --- a/src/stream/perf_stream_api.c +++ b/src/stream/perf_stream_api.c | |||
@@ -1032,8 +1032,9 @@ int main (int argc, char **argv) | |||
1032 | (void) memset (peer_data, 0, sizeof (peer_data)); | 1032 | (void) memset (peer_data, 0, sizeof (peer_data)); |
1033 | result = INIT; | 1033 | result = INIT; |
1034 | reset_read = GNUNET_NO; | 1034 | reset_read = GNUNET_NO; |
1035 | GNUNET_TESTBED_test_run (test_name, cfg_file, num_peers, event_mask, | 1035 | (void) GNUNET_TESTBED_test_run (test_name, cfg_file, num_peers, event_mask, |
1036 | &controller_event_cb, NULL, &test_master, NULL); | 1036 | &controller_event_cb, NULL, &test_master, |
1037 | NULL); | ||
1037 | if (DOWNLINK_OK != result) | 1038 | if (DOWNLINK_OK != result) |
1038 | goto return_fail; | 1039 | goto return_fail; |
1039 | } | 1040 | } |
diff --git a/src/stream/test_stream_2peers.c b/src/stream/test_stream_2peers.c index 1dd15fdd1..9eff08af4 100644 --- a/src/stream/test_stream_2peers.c +++ b/src/stream/test_stream_2peers.c | |||
@@ -662,9 +662,11 @@ int main (int argc, char **argv) | |||
662 | event_mask = 0; | 662 | event_mask = 0; |
663 | event_mask |= (1LL << GNUNET_TESTBED_ET_CONNECT); | 663 | event_mask |= (1LL << GNUNET_TESTBED_ET_CONNECT); |
664 | event_mask |= (1LL << GNUNET_TESTBED_ET_OPERATION_FINISHED); | 664 | event_mask |= (1LL << GNUNET_TESTBED_ET_OPERATION_FINISHED); |
665 | GNUNET_TESTBED_test_run ("test_stream_2peers", "test_stream_local.conf", | 665 | (void) GNUNET_TESTBED_test_run ("test_stream_2peers", |
666 | NUM_PEERS, event_mask, &controller_event_cb, NULL, | 666 | "test_stream_local.conf", |
667 | &test_master, NULL); | 667 | NUM_PEERS, event_mask, &controller_event_cb, |
668 | NULL, | ||
669 | &test_master, NULL); | ||
668 | if (GNUNET_SYSERR == result) | 670 | if (GNUNET_SYSERR == result) |
669 | return 1; | 671 | return 1; |
670 | return 0; | 672 | return 0; |
diff --git a/src/stream/test_stream_2peers_halfclose.c b/src/stream/test_stream_2peers_halfclose.c index 852880868..58f9f19cf 100644 --- a/src/stream/test_stream_2peers_halfclose.c +++ b/src/stream/test_stream_2peers_halfclose.c | |||
@@ -884,9 +884,11 @@ int main (int argc, char **argv) | |||
884 | event_mask = 0; | 884 | event_mask = 0; |
885 | event_mask |= (1LL << GNUNET_TESTBED_ET_CONNECT); | 885 | event_mask |= (1LL << GNUNET_TESTBED_ET_CONNECT); |
886 | event_mask |= (1LL << GNUNET_TESTBED_ET_OPERATION_FINISHED); | 886 | event_mask |= (1LL << GNUNET_TESTBED_ET_OPERATION_FINISHED); |
887 | GNUNET_TESTBED_test_run ("test_stream_2peers_halfclose", | 887 | (void) GNUNET_TESTBED_test_run ("test_stream_2peers_halfclose", |
888 | "test_stream_local.conf", NUM_PEERS, event_mask, | 888 | "test_stream_local.conf", NUM_PEERS, |
889 | &controller_event_cb, NULL, &test_master, NULL); | 889 | event_mask, |
890 | &controller_event_cb, NULL, &test_master, | ||
891 | NULL); | ||
890 | if (GNUNET_SYSERR == result) | 892 | if (GNUNET_SYSERR == result) |
891 | return 1; | 893 | return 1; |
892 | return 0; | 894 | return 0; |