From 5a0ee21b48eb605aca28c2d5d9bea80795e4c927 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 11 May 2017 11:22:42 +0200 Subject: even more detailed /history error reporting --- src/bank-lib/test_bank_interpreter.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/bank-lib/test_bank_interpreter.c') diff --git a/src/bank-lib/test_bank_interpreter.c b/src/bank-lib/test_bank_interpreter.c index bf797f2cb..c53d53a56 100644 --- a/src/bank-lib/test_bank_interpreter.c +++ b/src/bank-lib/test_bank_interpreter.c @@ -351,7 +351,7 @@ print_expected (struct History *h, off, (unsigned long long) h_len); GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Expected history\n"); + "Expected history:\n"); for (uint64_t i=0;idetails.history.failed) ) { + uint64_t total; + struct History *h; GNUNET_break (0); + + total = build_history (is, + &h); + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Expected history of length %llu, got %llu\n", + (unsigned long long) total, + (unsigned long long) cmd->details.history.results_obtained); + print_expected (h, total, UINT_MAX); + free_history (h, + total); fail (is); return; } -- cgit v1.2.3