exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 5c19f0a8c890079a8780ae8ce52f18bc975428e1
parent 9e4210203f4cfa90b1d34f6553f9773c05cabdec
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 19 May 2024 18:18:18 +0200

-minor testing fixups

Diffstat:
Msrc/include/taler_testing_lib.h | 14+++++++-------
Msrc/testing/testing_api_loop.c | 7++++---
2 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h @@ -99,7 +99,7 @@ TALER_TESTING_interpreter_fail (is); \ } while (0) - +l /** * Log an error message about a command not having * run to completion. @@ -288,9 +288,9 @@ struct TALER_TESTING_Command * @param is interpreter state */ void - (*run)(void *cls, - const struct TALER_TESTING_Command *cmd, - struct TALER_TESTING_Interpreter *is); + (*run)(void *cls, + const struct TALER_TESTING_Command *cmd, + struct TALER_TESTING_Interpreter *is); /** @@ -301,8 +301,8 @@ struct TALER_TESTING_Command * @param cmd command being cleaned up */ void - (*cleanup)(void *cls, - const struct TALER_TESTING_Command *cmd); + (*cleanup)(void *cls, + const struct TALER_TESTING_Command *cmd); /** * Extract information from a command that is useful for other @@ -1941,7 +1941,7 @@ struct TALER_TESTING_Timer /** * Obtain performance data from the interpreter. * - * @param timers what commands (by label) to obtain runtimes for + * @param[in,out] timers what commands (by label) to obtain runtimes for * @return the command */ struct TALER_TESTING_Command diff --git a/src/testing/testing_api_loop.c b/src/testing/testing_api_loop.c @@ -284,9 +284,10 @@ interpreter_run (void *cls) GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Running command `%s'\n", cmd->label); - cmd->start_time - = cmd->last_req_time - = GNUNET_TIME_absolute_get (); + cmd->last_req_time + = GNUNET_TIME_absolute_get (); + if (0 == cmd->num_tries) + cmd->start_time = cmd->last_req_time; cmd->num_tries = 1; if (NULL != cmd->name) {