diff options
Diffstat (limited to 'src/testbed')
-rw-r--r-- | src/testbed/test_testbed_api_test.c | 8 | ||||
-rw-r--r-- | src/testbed/test_testbed_api_topology.c | 8 | ||||
-rw-r--r-- | src/testbed/test_testbed_api_topology_clique.c | 8 | ||||
-rw-r--r-- | src/testbed/testbed_api_test.c | 8 |
4 files changed, 20 insertions, 12 deletions
diff --git a/src/testbed/test_testbed_api_test.c b/src/testbed/test_testbed_api_test.c index 1738c0a98..e4cee9ab0 100644 --- a/src/testbed/test_testbed_api_test.c +++ b/src/testbed/test_testbed_api_test.c | |||
@@ -228,9 +228,11 @@ main (int argc, char **argv) | |||
228 | event_mask = 0; | 228 | event_mask = 0; |
229 | event_mask |= (1LL << GNUNET_TESTBED_ET_CONNECT); | 229 | event_mask |= (1LL << GNUNET_TESTBED_ET_CONNECT); |
230 | event_mask |= (1LL << GNUNET_TESTBED_ET_OPERATION_FINISHED); | 230 | event_mask |= (1LL << GNUNET_TESTBED_ET_OPERATION_FINISHED); |
231 | GNUNET_TESTBED_test_run ("test_testbed_api_test", "test_testbed_api.conf", | 231 | (void) GNUNET_TESTBED_test_run ("test_testbed_api_test", |
232 | NUM_PEERS, event_mask, &controller_event_cb, NULL, | 232 | "test_testbed_api.conf", |
233 | &test_master, NULL); | 233 | NUM_PEERS, event_mask, &controller_event_cb, |
234 | NULL, | ||
235 | &test_master, NULL); | ||
234 | if (GNUNET_OK != result) | 236 | if (GNUNET_OK != result) |
235 | return 1; | 237 | return 1; |
236 | return 0; | 238 | return 0; |
diff --git a/src/testbed/test_testbed_api_topology.c b/src/testbed/test_testbed_api_topology.c index 5efaf8137..d3ce82895 100644 --- a/src/testbed/test_testbed_api_topology.c +++ b/src/testbed/test_testbed_api_topology.c | |||
@@ -156,9 +156,11 @@ main (int argc, char **argv) | |||
156 | event_mask = 0; | 156 | event_mask = 0; |
157 | event_mask |= (1LL << GNUNET_TESTBED_ET_CONNECT); | 157 | event_mask |= (1LL << GNUNET_TESTBED_ET_CONNECT); |
158 | event_mask |= (1LL << GNUNET_TESTBED_ET_OPERATION_FINISHED); | 158 | event_mask |= (1LL << GNUNET_TESTBED_ET_OPERATION_FINISHED); |
159 | GNUNET_TESTBED_test_run ("test_testbed_api_test", "test_testbed_api.conf", | 159 | (void) GNUNET_TESTBED_test_run ("test_testbed_api_test", |
160 | NUM_PEERS, event_mask, &controller_event_cb, NULL, | 160 | "test_testbed_api.conf", |
161 | &test_master, NULL); | 161 | NUM_PEERS, event_mask, &controller_event_cb, |
162 | NULL, | ||
163 | &test_master, NULL); | ||
162 | if (GNUNET_OK != result) | 164 | if (GNUNET_OK != result) |
163 | return 1; | 165 | return 1; |
164 | return 0; | 166 | return 0; |
diff --git a/src/testbed/test_testbed_api_topology_clique.c b/src/testbed/test_testbed_api_topology_clique.c index 2fbf48729..0304fe33e 100644 --- a/src/testbed/test_testbed_api_topology_clique.c +++ b/src/testbed/test_testbed_api_topology_clique.c | |||
@@ -154,9 +154,11 @@ main (int argc, char **argv) | |||
154 | event_mask = 0; | 154 | event_mask = 0; |
155 | event_mask |= (1LL << GNUNET_TESTBED_ET_CONNECT); | 155 | event_mask |= (1LL << GNUNET_TESTBED_ET_CONNECT); |
156 | event_mask |= (1LL << GNUNET_TESTBED_ET_OPERATION_FINISHED); | 156 | event_mask |= (1LL << GNUNET_TESTBED_ET_OPERATION_FINISHED); |
157 | GNUNET_TESTBED_test_run ("test_testbed_api_test", "test_testbed_api.conf", | 157 | (void) GNUNET_TESTBED_test_run ("test_testbed_api_test", |
158 | NUM_PEERS, event_mask, &controller_event_cb, NULL, | 158 | "test_testbed_api.conf", |
159 | &test_master, NULL); | 159 | NUM_PEERS, event_mask, &controller_event_cb, |
160 | NULL, | ||
161 | &test_master, NULL); | ||
160 | if (GNUNET_OK != result) | 162 | if (GNUNET_OK != result) |
161 | return 1; | 163 | return 1; |
162 | return 0; | 164 | return 0; |
diff --git a/src/testbed/testbed_api_test.c b/src/testbed/testbed_api_test.c index 580917aa7..0fa55fa36 100644 --- a/src/testbed/testbed_api_test.c +++ b/src/testbed/testbed_api_test.c | |||
@@ -168,7 +168,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
168 | * @param test_master task to run once the test is ready | 168 | * @param test_master task to run once the test is ready |
169 | * @param test_master_cls closure for 'task'. | 169 | * @param test_master_cls closure for 'task'. |
170 | */ | 170 | */ |
171 | void | 171 | int |
172 | GNUNET_TESTBED_test_run (const char *testname, const char *cfg_filename, | 172 | GNUNET_TESTBED_test_run (const char *testname, const char *cfg_filename, |
173 | unsigned int num_peers, | 173 | unsigned int num_peers, |
174 | uint64_t event_mask, | 174 | uint64_t event_mask, |
@@ -187,6 +187,7 @@ GNUNET_TESTBED_test_run (const char *testname, const char *cfg_filename, | |||
187 | GNUNET_GETOPT_OPTION_END | 187 | GNUNET_GETOPT_OPTION_END |
188 | }; | 188 | }; |
189 | struct TestRunContext *rc; | 189 | struct TestRunContext *rc; |
190 | int ret; | ||
190 | 191 | ||
191 | argv2[0] = GNUNET_strdup (testname); | 192 | argv2[0] = GNUNET_strdup (testname); |
192 | argv2[2] = GNUNET_strdup (cfg_filename); | 193 | argv2[2] = GNUNET_strdup (cfg_filename); |
@@ -200,11 +201,12 @@ GNUNET_TESTBED_test_run (const char *testname, const char *cfg_filename, | |||
200 | rc->event_mask = event_mask; | 201 | rc->event_mask = event_mask; |
201 | rc->cc = cc; | 202 | rc->cc = cc; |
202 | rc->cc_cls = cc_cls; | 203 | rc->cc_cls = cc_cls; |
203 | (void) GNUNET_PROGRAM_run ((sizeof (argv2) / sizeof (char *)) - 1, argv2, | 204 | ret = GNUNET_PROGRAM_run ((sizeof (argv2) / sizeof (char *)) - 1, argv2, |
204 | testname, "nohelp", options, &run, rc); | 205 | testname, "nohelp", options, &run, rc); |
205 | GNUNET_free (rc); | 206 | GNUNET_free (rc); |
206 | GNUNET_free (argv2[0]); | 207 | GNUNET_free (argv2[0]); |
207 | GNUNET_free (argv2[2]); | 208 | GNUNET_free (argv2[2]); |
209 | return ret; | ||
208 | } | 210 | } |
209 | 211 | ||
210 | /* end of testbed_api_test.c */ | 212 | /* end of testbed_api_test.c */ |