diff options
author | Pauli <paul.dale@oracle.com> | 2017-06-19 03:21:22 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-06-20 04:37:16 +0200 |
commit | 8fe3127cda7ee89e169184eeeaaca5eebcf8664e (patch) | |
tree | 689fb82417454702cde2b2f03feeb76123fd497e /test/d2i_test.c | |
parent | Remove bsd_cryptodev engine (diff) | |
download | openssl-8fe3127cda7ee89e169184eeeaaca5eebcf8664e.tar.xz openssl-8fe3127cda7ee89e169184eeeaaca5eebcf8664e.zip |
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/d2i_test.c')
-rw-r--r-- | test/d2i_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/d2i_test.c b/test/d2i_test.c index 8126ace914..58fbe4af2f 100644 --- a/test/d2i_test.c +++ b/test/d2i_test.c @@ -137,14 +137,14 @@ int test_main(int argc, char *argv[]) item_type = ASN1_ITEM_lookup(test_type_name); if (item_type == NULL) { - TEST_error("Unknown type %s\n", test_type_name); - fprintf(stderr, "Supported types:\n"); + TEST_error("Unknown type %s", test_type_name); + TEST_note("Supported types:"); for (i = 0;; i++) { const ASN1_ITEM *it = ASN1_ITEM_get(i); if (it == NULL) break; - fprintf(stderr, "\t%s\n", it->sname); + TEST_note("\t%s", it->sname); } return 1; } |