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/pkey_meth_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/pkey_meth_test.c')
-rw-r--r-- | test/pkey_meth_test.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/pkey_meth_test.c b/test/pkey_meth_test.c index adff232304..414fc3cf64 100644 --- a/test/pkey_meth_test.c +++ b/test/pkey_meth_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 @@ -46,13 +46,9 @@ static int test_asn1_meths() EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, &info, NULL, ameth); if (info == NULL) info = "<NO NAME>"; - fprintf(stderr, "%d : %s : %s\n", pkey_id, OBJ_nid2ln(pkey_id), - info); + TEST_note("%d : %s : %s", pkey_id, OBJ_nid2ln(pkey_id), info); } - } else { - fprintf(stderr, "Order OK\n"); } - return good; } |