Silence is good. On failure, the regress framework will make it clear.
-/* $OpenBSD: bn_isqrt.c,v 1.8 2022/11/26 16:08:56 tb Exp $ */
+/* $OpenBSD: bn_isqrt.c,v 1.9 2022/12/01 13:49:12 tb Exp $ */
/*
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
*
failed |= check_tables(0);
failed |= validate_tables();
- if (!failed)
- printf("SUCCESS\n");
-
return failed;
}
-/* $OpenBSD: bn_mod_exp2_mont.c,v 1.1 2022/03/10 04:39:49 tb Exp $ */
+/* $OpenBSD: bn_mod_exp2_mont.c,v 1.2 2022/12/01 13:49:12 tb Exp $ */
/*
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
*
BN_free(m);
- printf("SUCCESS\n");
-
return 0;
}
-/* $OpenBSD: bn_mod_sqrt.c,v 1.1 2022/03/15 16:28:42 tb Exp $ */
+/* $OpenBSD: bn_mod_sqrt.c,v 1.2 2022/12/01 13:49:12 tb Exp $ */
/*
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
*
for (i = 0; i < N_TESTS; i++)
failed |= mod_sqrt_test(&mod_sqrt_test_data[i]);
- if (!failed)
- printf("SUCCESS\n");
-
return failed;
}
-/* $OpenBSD: bn_primes.c,v 1.2 2022/11/09 23:28:08 tb Exp $ */
+/* $OpenBSD: bn_primes.c,v 1.3 2022/12/01 13:49:12 tb Exp $ */
/*
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
*
failed |= test_bn_is_prime_fasttest(0);
failed |= test_bn_is_prime_fasttest(1);
- printf("%s\n", failed ? "FAILED" : "SUCCESS");
-
return failed;
}
-/* $OpenBSD: bn_to_string.c,v 1.1 2019/04/13 22:06:31 tb Exp $ */
+/* $OpenBSD: bn_to_string.c,v 1.2 2022/12/01 13:49:12 tb Exp $ */
/*
* Copyright (c) 2019 Theo Buehler <tb@openbsd.org>
*
BN_free(bn);
- printf("%s\n", failed ? "FAILED" : "SUCCESS");
return failed;
}
-/* $OpenBSD: bn_unit.c,v 1.5 2022/11/25 09:32:10 tb Exp $ */
+/* $OpenBSD: bn_unit.c,v 1.6 2022/12/01 13:49:12 tb Exp $ */
/*
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
failed |= test_bn_print_null_derefs();
- if (!failed)
- printf("SUCCESS\n");
-
return failed;
}
-/* $OpenBSD: bn_rand_interval.c,v 1.5 2022/06/19 17:10:02 tb Exp $ */
+/* $OpenBSD: bn_rand_interval.c,v 1.6 2022/12/01 13:49:12 tb Exp $ */
/*
* Copyright (c) 2018 Theo Buehler <tb@openbsd.org>
*
}
}
- if (success == 1)
- printf("SUCCESS\n");
- else
- printf("FAIL");
-
BN_free(a);
BN_free(b);
BN_free(x);
-/* $OpenBSD: ec_point_conversion.c,v 1.6 2021/12/29 22:48:09 tb Exp $ */
+/* $OpenBSD: ec_point_conversion.c,v 1.7 2022/12/01 13:49:12 tb Exp $ */
/*
* Copyright (c) 2021 Theo Buehler <tb@openbsd.org>
* Copyright (c) 2021 Joel Sing <jsing@openbsd.org>
for (i = 0; i < N_FORMS; i++)
failed |= roundtrip(group, point, forms[i], x, y);
- fprintf(stderr, "%s: %s\n", __func__, failed ? "FAILED" : "SUCCESS");
+ fprintf(stderr, "%s %s\n", __func__, failed ? ": FAILED" : "");
EC_GROUP_free(group);
EC_POINT_free(point);
for (curve_id = 0; curve_id < ncurves; curve_id++)
failed |= test_random_points_on_curve(&all_curves[curve_id]);
- fprintf(stderr, "%s: %s\n", __func__, failed ? "FAILED" : "SUCCESS");
+ fprintf(stderr, "%s %s\n", __func__, failed ? ": FAILED" : "");
free(all_curves);
return failed;
for (i = 0; i < N_POINT_CONVERSIONS; i++)
failed |= point_conversion_form_y_bit(&point_conversions[i]);
- fprintf(stderr, "%s: %s\n", __func__, failed ? "FAILED" : "SUCCESS");
+ fprintf(stderr, "%s %s\n", __func__, failed ? ": FAILED" : "");
return failed;
}
failed |= test_hybrid_corner_case();
failed |= test_point_conversions();
- fprintf(stderr, "%s\n", failed ? "FAILED" : "SUCCESS");
-
return failed;
}
-/* $OpenBSD: evp_pkey_check.c,v 1.2 2022/01/11 19:27:35 tb Exp $ */
+/* $OpenBSD: evp_pkey_check.c,v 1.3 2022/12/01 13:49:12 tb Exp $ */
/*
* Copyright (c) 2021-2022 Theo Buehler <tb@openbsd.org>
*
failed |= evp_pkey_check_rsa();
failed |= evp_pkey_check_ec();
- printf("%s\n", failed ? "FAILED" : "SUCCESS");
-
return failed;
}
-/* $OpenBSD: evp_pkey_cleanup.c,v 1.2 2022/11/26 16:08:56 tb Exp $ */
+/* $OpenBSD: evp_pkey_cleanup.c,v 1.3 2022/12/01 13:49:12 tb Exp $ */
/*
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
for (i = 0; i < N_PKEY_IDS; i++)
failed |= test_evp_pkey_ctx_cleanup(pkey_ids[i]);
- if (!failed)
- printf("SUCCESS\n");
-
return failed;
}
-/* $OpenBSD: wycheproof-primes.c,v 1.1 2022/07/07 20:01:20 tb Exp $ */
+/* $OpenBSD: wycheproof-primes.c,v 1.2 2022/12/01 13:49:12 tb Exp $ */
/*
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
*
for (i = 0; i < N_TESTS; i++)
failed |= primality_test(&testcases[i]);
- printf("%s\n", failed ? "FAILED" : "SUCCESS");
-
return failed;
}
-/* $OpenBSD: handshake_table.c,v 1.17 2022/03/08 16:59:25 tb Exp $ */
+/* $OpenBSD: handshake_table.c,v 1.18 2022/12/01 13:49:12 tb Exp $ */
/*
* Copyright (c) 2019 Theo Buehler <tb@openbsd.org>
*
if (!verify_table(hs_table, print))
return 1;
- if (!print)
- printf("SUCCESS\n");
-
return 0;
}
-/* $OpenBSD: valid_handshakes_terminate.c,v 1.3 2019/04/05 20:25:42 tb Exp $ */
+/* $OpenBSD: valid_handshakes_terminate.c,v 1.4 2022/12/01 13:49:12 tb Exp $ */
/*
* Copyright (c) 2019 Theo Buehler <tb@openbsd.org>
*
}
}
- if (!fail)
- printf("SUCCESS\n");
-
return fail;
}