diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-04-07 09:10:47 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-04-07 09:11:45 +0200 |
commit | 776be341d9d0acd240accc07aadcb833b31d5028 (patch) | |
tree | 876eb6987b56b1343bdc7b76a7085e19bddb7114 /src | |
parent | efb63d91616d5587bf99efab80c85afd205fc1bd (diff) | |
download | gnunet-776be341d9d0acd240accc07aadcb833b31d5028.tar.gz gnunet-776be341d9d0acd240accc07aadcb833b31d5028.zip |
-add missing helper
Diffstat (limited to 'src')
-rw-r--r-- | src/include/gnunet_testing_ng_lib.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/include/gnunet_testing_ng_lib.h b/src/include/gnunet_testing_ng_lib.h index 951158ca4..ed96bb447 100644 --- a/src/include/gnunet_testing_ng_lib.h +++ b/src/include/gnunet_testing_ng_lib.h | |||
@@ -271,6 +271,17 @@ GNUNET_TESTING_cmd_end (void); | |||
271 | 271 | ||
272 | 272 | ||
273 | /** | 273 | /** |
274 | * Turn asynchronous command into synchronous command. | ||
275 | * | ||
276 | * @param cmd command to make synchronous. | ||
277 | * @return a finish-command. | ||
278 | */ | ||
279 | // SUGGESTION (NEW!) | ||
280 | const struct GNUNET_TESTING_Command | ||
281 | TALER_TESTING_cmd_make_synchronous (const struct GNUNET_TESTING_Command cmd); | ||
282 | |||
283 | |||
284 | /** | ||
274 | * Create (synchronous) command that waits for another command to finish. | 285 | * Create (synchronous) command that waits for another command to finish. |
275 | * If @a cmd_ref did not finish after @a timeout, this command will fail | 286 | * If @a cmd_ref did not finish after @a timeout, this command will fail |
276 | * the test case. | 287 | * the test case. |
@@ -282,7 +293,7 @@ GNUNET_TESTING_cmd_end (void); | |||
282 | * @return a finish-command. | 293 | * @return a finish-command. |
283 | */ | 294 | */ |
284 | // SUGGESTION (NEW!) | 295 | // SUGGESTION (NEW!) |
285 | const struct GNUNET_TESTING_Command * | 296 | const struct GNUNET_TESTING_Command |
286 | TALER_TESTING_cmd_finish (const char *finish_label, | 297 | TALER_TESTING_cmd_finish (const char *finish_label, |
287 | const char *cmd_ref, | 298 | const char *cmd_ref, |
288 | struct GNUNET_TIME_Relative timeout); | 299 | struct GNUNET_TIME_Relative timeout); |