summaryrefslogtreecommitdiff
path: root/src/exchange-lib/testing_api_cmd_batch.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-08-09 21:10:56 +0200
committerChristian Grothoff <christian@grothoff.org>2018-08-09 21:10:56 +0200
commitc51b19512bfc5bf3848211e6a4e9f3534ece7ee2 (patch)
tree46f5506ca113129e5a36897be25ca898a08c6866 /src/exchange-lib/testing_api_cmd_batch.c
parente3f7083b3eb39ed28eee27b6104a3a508437c929 (diff)
downloadexchange-c51b19512bfc5bf3848211e6a4e9f3534ece7ee2.tar.gz
exchange-c51b19512bfc5bf3848211e6a4e9f3534ece7ee2.tar.bz2
exchange-c51b19512bfc5bf3848211e6a4e9f3534ece7ee2.zip
report ore precisely where commands went wrong
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_batch.c')
-rw-r--r--src/exchange-lib/testing_api_cmd_batch.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/exchange-lib/testing_api_cmd_batch.c b/src/exchange-lib/testing_api_cmd_batch.c
index 3912762f1..738012b80 100644
--- a/src/exchange-lib/testing_api_cmd_batch.c
+++ b/src/exchange-lib/testing_api_cmd_batch.c
@@ -33,10 +33,14 @@
*/
struct BatchState
{
- /* CMDs batch. */
+ /**
+ * CMDs batch.
+ */
struct TALER_TESTING_Command *batch;
- /* Internal comand pointer. */
+ /**
+ * Internal comand pointer.
+ */
int batch_ip;
};
@@ -56,7 +60,6 @@ batch_run (void *cls,
struct BatchState *bs = cls;
bs->batch_ip++;
-
TALER_LOG_DEBUG ("Running batched command: %s\n",
bs->batch[bs->batch_ip].label);
@@ -113,8 +116,8 @@ batch_traits (void *cls,
const char *trait,
unsigned int index)
{
- #define CURRENT_CMD_INDEX 0
- #define BATCH_INDEX 1
+#define CURRENT_CMD_INDEX 0
+#define BATCH_INDEX 1
struct BatchState *bs = cls;