aboutsummaryrefslogtreecommitdiffstats
path: root/test/d2i_test.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2017-06-19 11:21:22 +1000
committerRich Salz <rsalz@openssl.org>2017-06-19 22:37:16 -0400
commit8fe3127cda7ee89e169184eeeaaca5eebcf8664e (patch)
tree689fb82417454702cde2b2f03feeb76123fd497e /test/d2i_test.c
parentf39a5501ce69cab0c7282f5dcbf2b80d8ee259f2 (diff)
downloadopenssl-8fe3127cda7ee89e169184eeeaaca5eebcf8664e.tar.gz
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.c6
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;
}