aboutsummaryrefslogtreecommitdiffstats
path: root/test/x509_internal_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/x509_internal_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/x509_internal_test.c')
-rw-r--r--test/x509_internal_test.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/x509_internal_test.c b/test/x509_internal_test.c
index 10cb0b189b..220231f99d 100644
--- a/test/x509_internal_test.c
+++ b/test/x509_internal_test.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2016-2017 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -52,12 +52,8 @@ static int test_standard_exts()
tmp = standard_exts;
TEST_error("Extensions out of order!");
for (i = 0; i < STANDARD_EXTENSION_COUNT; i++, tmp++)
- fprintf(stderr, "%d : %s\n", (*tmp)->ext_nid,
- OBJ_nid2sn((*tmp)->ext_nid));
- } else {
- fprintf(stderr, "Order OK\n");
+ TEST_note("%d : %s", (*tmp)->ext_nid, OBJ_nid2sn((*tmp)->ext_nid));
}
-
return good;
}