gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-exchange] branch master updated: even more detailed


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: even more detailed /history error reporting
Date: Thu, 11 May 2017 11:22:44 +0200

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

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 5a0ee21  even more detailed /history error reporting
5a0ee21 is described below

commit 5a0ee21b48eb605aca28c2d5d9bea80795e4c927
Author: Christian Grothoff <address@hidden>
AuthorDate: Thu May 11 11:22:42 2017 +0200

    even more detailed /history error reporting
---
 src/bank-lib/test_bank_interpreter.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/bank-lib/test_bank_interpreter.c 
b/src/bank-lib/test_bank_interpreter.c
index bf797f2..c53d53a 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;i<h_len;i++)
   {
     char *acc;
@@ -553,7 +553,19 @@ history_cb (void *cls,
          (GNUNET_YES ==
           cmd->details.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;
     }

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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