diff options
author | t3sserakt <t3ss@posteo.de> | 2021-09-14 14:19:31 +0200 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2021-09-14 14:19:31 +0200 |
commit | 9bdaa1f9b21b324963fe0f41311ae6d9c0948946 (patch) | |
tree | 79704a93b827d97497cc1665302fb3f1768f1b74 /src/transport/test_transport_plugin_cmd_simple_send.c | |
parent | c01e846f9af440e6ee57531715e6fc6c383ad374 (diff) | |
download | gnunet-9bdaa1f9b21b324963fe0f41311ae6d9c0948946.tar.gz gnunet-9bdaa1f9b21b324963fe0f41311ae6d9c0948946.zip |
- fixed wrong dependencies to tng version of libs, added missing block after sending
Diffstat (limited to 'src/transport/test_transport_plugin_cmd_simple_send.c')
-rw-r--r-- | src/transport/test_transport_plugin_cmd_simple_send.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/transport/test_transport_plugin_cmd_simple_send.c b/src/transport/test_transport_plugin_cmd_simple_send.c index 1dc44c945..35aa07ecd 100644 --- a/src/transport/test_transport_plugin_cmd_simple_send.c +++ b/src/transport/test_transport_plugin_cmd_simple_send.c | |||
@@ -55,6 +55,11 @@ char *cfgname; | |||
55 | */ | 55 | */ |
56 | unsigned int are_all_peers_started; | 56 | unsigned int are_all_peers_started; |
57 | 57 | ||
58 | /** | ||
59 | * Flag indicating a received message. | ||
60 | */ | ||
61 | unsigned int message_received; | ||
62 | |||
58 | 63 | ||
59 | /** | 64 | /** |
60 | * Function called to check a message of type GNUNET_TRANSPORT_TESTING_SIMPLE_MTYPE being | 65 | * Function called to check a message of type GNUNET_TRANSPORT_TESTING_SIMPLE_MTYPE being |
@@ -80,6 +85,7 @@ handle_test (void *cls, | |||
80 | { | 85 | { |
81 | LOG (GNUNET_ERROR_TYPE_ERROR, | 86 | LOG (GNUNET_ERROR_TYPE_ERROR, |
82 | "message received\n"); | 87 | "message received\n"); |
88 | message_received = GNUNET_YES; | ||
83 | } | 89 | } |
84 | 90 | ||
85 | 91 | ||
@@ -203,6 +209,8 @@ start_testcase (TESTING_CMD_HELPER_write_cb write_message, char *router_ip, | |||
203 | (atoi (n) - 1) * atoi (local_m) + atoi ( | 209 | (atoi (n) - 1) * atoi (local_m) + atoi ( |
204 | m), | 210 | m), |
205 | "start-peer"), | 211 | "start-peer"), |
212 | GNUNET_TESTING_cmd_block_until_external_trigger ("block-receive", | ||
213 | &message_received), | ||
206 | GNUNET_TRANSPORT_cmd_stop_peer ("stop-peer", | 214 | GNUNET_TRANSPORT_cmd_stop_peer ("stop-peer", |
207 | "start-peer"), | 215 | "start-peer"), |
208 | GNUNET_TESTING_cmd_system_destroy ("system-destroy", | 216 | GNUNET_TESTING_cmd_system_destroy ("system-destroy", |