diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-10-27 18:37:42 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-10-27 18:37:42 +0200 |
commit | b449c7353ef5d789500244c790bae5affedf0ee7 (patch) | |
tree | 37376031b030558c8f4f3bb58da08a519a3b292f /src/testing/testing_api_cmd_rewind.c | |
parent | 3f630eafc4bac6249c518bc725bf1b19aa0287f1 (diff) | |
download | exchange-b449c7353ef5d789500244c790bae5affedf0ee7.tar.xz |
work on testing ftbfs
Diffstat (limited to 'src/testing/testing_api_cmd_rewind.c')
-rw-r--r-- | src/testing/testing_api_cmd_rewind.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/testing/testing_api_cmd_rewind.c b/src/testing/testing_api_cmd_rewind.c index 979607cd7..9e19773cc 100644 --- a/src/testing/testing_api_cmd_rewind.c +++ b/src/testing/testing_api_cmd_rewind.c @@ -68,13 +68,12 @@ rewind_ip_cleanup (void *cls, * @return #GNUNET_OK on success, #GNUNET_NO if target was not found, * #GNUNET_SYSERR if target is in the future and we failed */ -static int +static enum GNUNET_GenericReturnValue seek_batch (struct TALER_TESTING_Interpreter *is, const struct TALER_TESTING_Command *cmd, const struct TALER_TESTING_Command *target) { unsigned int new_ip; -#define BATCH_INDEX 1 struct TALER_TESTING_Command *batch; struct TALER_TESTING_Command *current; struct TALER_TESTING_Command *icmd; @@ -82,9 +81,8 @@ seek_batch (struct TALER_TESTING_Interpreter *is, current = TALER_TESTING_cmd_batch_get_current (cmd); GNUNET_assert (GNUNET_OK == - TALER_TESTING_get_trait_cmd (cmd, - BATCH_INDEX, - &batch)); + TALER_TESTING_get_trait_batch_cmds (cmd, + &batch)); match = NULL; for (new_ip = 0; NULL != (icmd = &batch[new_ip]); @@ -189,15 +187,6 @@ rewind_ip_run (void *cls, } -/** - * Make the instruction pointer point to @a new_ip - * only if @a counter is greater than zero. - * - * @param label command label - * @param target_label label of the new instruction pointer's destination after the jump; - * must be before the current instruction - * @param counter counts how many times the rewinding is to happen. - */ struct TALER_TESTING_Command TALER_TESTING_cmd_rewind_ip (const char *label, const char *target_label, |