gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] 46/151: -minor testing fixups


From: gnunet
Subject: [taler-exchange] 46/151: -minor testing fixups
Date: Tue, 30 Jul 2024 23:36:56 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

commit 5c19f0a8c890079a8780ae8ce52f18bc975428e1
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun May 19 18:18:18 2024 +0200

    -minor testing fixups
---
 src/include/taler_testing_lib.h | 14 +++++++-------
 src/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
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)
   {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]