diff options
author | Pauli <paul.dale@oracle.com> | 2017-06-19 11:21:22 +1000 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-06-19 22:37:16 -0400 |
commit | 8fe3127cda7ee89e169184eeeaaca5eebcf8664e (patch) | |
tree | 689fb82417454702cde2b2f03feeb76123fd497e /test/evp_test.c | |
parent | f39a5501ce69cab0c7282f5dcbf2b80d8ee259f2 (diff) |
Update tests to avoid printf to stdout/stderr when running as test cases.
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3710)
Diffstat (limited to 'test/evp_test.c')
-rw-r--r-- | test/evp_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |