From 8fe3127cda7ee89e169184eeeaaca5eebcf8664e Mon Sep 17 00:00:00 2001 From: Pauli Date: Mon, 19 Jun 2017 11:21:22 +1000 Subject: Update tests to avoid printf to stdout/stderr when running as test cases. Reviewed-by: Tim Hudson Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/3710) --- test/evp_test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/evp_test.c') diff --git a/test/evp_test.c b/test/evp_test.c index 81232edf97..36e29c4bec 100644 --- a/test/evp_test.c +++ b/test/evp_test.c @@ -284,7 +284,7 @@ static int parse_bin(const char *value, unsigned char **buf, size_t *buflen) /* Otherwise assume as hex literal and convert it to binary buffer */ if (!TEST_ptr(*buf = OPENSSL_hexstr2buf(value, &len))) { TEST_info("Can't convert %s", value); - ERR_print_errors(bio_err); + TEST_openssl_errors(); return -1; } /* Size of input buffer means we'll never overflow */ @@ -2208,7 +2208,7 @@ static int run_test(EVP_TEST *t) return 0; } if (!check_test_error(t)) { - test_openssl_errors(); + TEST_openssl_errors(); t->s.errors++; } } @@ -2306,7 +2306,7 @@ top: pkey = PEM_read_bio_PrivateKey(t->s.key, NULL, 0, NULL); if (pkey == NULL && !key_unsupported()) { TEST_info("Can't read private key %s", pp->value); - ERR_print_errors_fp(stderr); + TEST_openssl_errors(); return 0; } klist = &private_keys; @@ -2315,7 +2315,7 @@ top: pkey = PEM_read_bio_PUBKEY(t->s.key, NULL, 0, NULL); if (pkey == NULL && !key_unsupported()) { TEST_info("Can't read public key %s", pp->value); - ERR_print_errors_fp(stderr); + TEST_openssl_errors(); return 0; } klist = &public_keys; -- cgit v1.2.3