gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] branch master updated: -fixes to get tests to pass aga


From: gnunet
Subject: [taler-anastasis] branch master updated: -fixes to get tests to pass again
Date: Sun, 11 Jul 2021 20:55:31 +0200

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

grothoff pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new 70a474b  -fixes to get tests to pass again
70a474b is described below

commit 70a474baecee81ede94f96026849187c31468c00
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Jul 11 20:55:29 2021 +0200

    -fixes to get tests to pass again
---
 src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh | 8 ++++----
 src/reducer/anastasis_api_backup_redux.c                         | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh 
b/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh
index 646050a..d2ef21a 100755
--- a/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh
+++ b/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh
@@ -316,7 +316,9 @@ anastasis-reducer -a \
 echo -n "."
 # Finished adding authentication methods
 anastasis-reducer \
-  next < $B1FILE > $B2FILE
+    next < $B1FILE > $B2FILE
+
+
 echo -n ","
 # Finished policy review
 anastasis-reducer \
@@ -476,9 +478,7 @@ echo " OK"
 
 echo -n "Checking recovered secret ..."
 # finally: check here that we recovered the secret...
-export R2FILE
-export R1FILE
-bash
+
 STATE=`jq -r -e .recovery_state < $R2FILE`
 if test "$STATE" != "RECOVERY_FINISHED"
 then
diff --git a/src/reducer/anastasis_api_backup_redux.c 
b/src/reducer/anastasis_api_backup_redux.c
index f42dd3f..b24bad0 100644
--- a/src/reducer/anastasis_api_backup_redux.c
+++ b/src/reducer/anastasis_api_backup_redux.c
@@ -1154,8 +1154,8 @@ lookup_salt (const json_t *state,
  * @param my cost to compare
  * @param be cost to compare
  * @return 0 if costs are estimated equal,
- *         1 if @a me < @a be
- *        -1 if @a me > @a be
+ *         1 if @a my < @a be
+ *        -1 if @a my > @a be
  */
 static int
 compare_costs (const struct Costs *my,
@@ -1259,7 +1259,7 @@ evaluate_map (struct PolicyBuilder *pb,
       const struct PolicyEntry *pe = &pm->providers[k];
 
       fprintf (stderr,
-               "%u->%s",
+               "%u->%s ",
                p->challenges[k],
                pe->provider_name);
     }
@@ -1302,7 +1302,7 @@ evaluate_map (struct PolicyBuilder *pb,
 
   ccmp = -1; /* non-zero if 'best_duplicates' is UINT_MAX */
   if ( (UINT_MAX != pb->best_duplicates) &&
-       (0 < (ccmp = compare_costs (my_cost,
+       (0 > (ccmp = compare_costs (my_cost,
                                    pb->best_cost))) )
   {
     /* new method not clearly better, do not use it */

-- 
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]