aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-05-19 18:18:18 +0200
committerChristian Grothoff <christian@grothoff.org>2024-07-29 12:18:42 +0200
commit5c19f0a8c890079a8780ae8ce52f18bc975428e1 (patch)
treeef26437148a8af1e93f21081e4d014bcc9719d46
parent9e4210203f4cfa90b1d34f6553f9773c05cabdec (diff)
-minor testing fixups
-rw-r--r--src/include/taler_testing_lib.h14
-rw-r--r--src/testing/testing_api_loop.c7
2 files changed, 11 insertions, 10 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index 8ca44e1e4..2cd9dccd6 100644
--- 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
index 0f242f7f1..958b3b5df 100644
--- 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)
{