summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/exptest.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/exptest.c b/test/exptest.c
index fa4dfe3577..e15c0519b9 100644
--- a/test/exptest.c
+++ b/test/exptest.c
@@ -173,12 +173,9 @@ static int test_mod_exp(int round)
|| !TEST_true(BN_mod_exp_mont_consttime(r_mont_const, a, b, m, ctx, NULL)))
goto err;
- if (TEST_int_eq(BN_cmp(r_simple, r_mont), 0)
- && TEST_int_eq(BN_cmp(r_simple, r_recp), 0)
- && TEST_int_eq(BN_cmp(r_simple, r_mont_const), 0)) {
- printf(".");
- fflush(stdout);
- } else {
+ if (!TEST_int_eq(BN_cmp(r_simple, r_mont), 0)
+ || !TEST_int_eq(BN_cmp(r_simple, r_recp), 0)
+ || !TEST_int_eq(BN_cmp(r_simple, r_mont_const), 0)) {
if (BN_cmp(r_simple, r_mont) != 0)
fprintf(stderr, "simple and mont results differ\n");
if (BN_cmp(r_simple, r_mont_const) != 0)