aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_loop.c
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2021-11-29 13:24:29 +0100
committert3sserakt <t3ss@posteo.de>2021-11-29 13:24:29 +0100
commit297ee1c85e3b8a1745193c854df2dec1126b7b99 (patch)
tree862872c1f89059dc9a43d21111eba4c932caf15a /src/testing/testing_api_loop.c
parentfdb9fc3b6f1333a05e093ed1a8aee63d6308ced1 (diff)
downloadgnunet-297ee1c85e3b8a1745193c854df2dec1126b7b99.tar.gz
gnunet-297ee1c85e3b8a1745193c854df2dec1126b7b99.zip
- added number of unintentional connects to connect cmd, fixed bugs in tcp communicator and tng service, added method to get a cmd not restricted to future or past cmds
Diffstat (limited to 'src/testing/testing_api_loop.c')
-rw-r--r--src/testing/testing_api_loop.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/testing/testing_api_loop.c b/src/testing/testing_api_loop.c
index e82ec33ab..290311c59 100644
--- a/src/testing/testing_api_loop.c
+++ b/src/testing/testing_api_loop.c
@@ -192,6 +192,28 @@ GNUNET_TESTING_interpreter_lookup_command (
192 192
193 193
194/** 194/**
195 * Lookup command by label.
196 * All commands, first into the past, then into the furture are looked up.
197 *
198 * @param is interpreter to lookup command in
199 * @param label label of the command to lookup.
200 * @return the command, if it is found, or NULL.
201 */
202const struct GNUNET_TESTING_Command *
203GNUNET_TESTING_interpreter_lookup_command_all (
204 struct GNUNET_TESTING_Interpreter *is,
205 const char *label)
206{
207 const struct GNUNET_TESTING_Command *cmd;
208
209 cmd = get_command (is, label, GNUNET_NO);
210 if (NULL == cmd)
211 cmd = get_command (is, label, GNUNET_YES);
212 return cmd;
213}
214
215
216/**
195 * Finish the test run, return the final result. 217 * Finish the test run, return the final result.
196 * 218 *
197 * @param cls the `struct GNUNET_TESTING_Interpreter` 219 * @param cls the `struct GNUNET_TESTING_Interpreter`