diff options
author | Tomas Mraz <tomas@openssl.org> | 2022-10-24 12:28:58 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-10-27 18:39:29 +0200 |
commit | d8eb0e1988aba5d86aa6570357853cad0ab3f532 (patch) | |
tree | cc081e112df831faddc2558d27d823d84d665339 /test/cmsapitest.c | |
parent | c8c678e7d91ca2cea41c6c574cf7656a9404646f (diff) |
tests: clear error queue before executing a testcase
There can be errors in the queue from previous tests and
we look at it to verify we do not add spurious errors in
some testcases.
Fixes #19477
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19483)
(cherry picked from commit 4bae06d47ae26b37a948d31f11884e1813f6d669)
Diffstat (limited to 'test/cmsapitest.c')
-rw-r--r-- | test/cmsapitest.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/cmsapitest.c b/test/cmsapitest.c index 8187fec761..ee08c0c974 100644 --- a/test/cmsapitest.c +++ b/test/cmsapitest.c @@ -340,8 +340,6 @@ static int test_d2i_CMS_decode(const int idx) long buf_len = 0; int ret = 0; - ERR_clear_error(); - if (!TEST_ptr(bio = BIO_new_file(derin, "r"))) goto end; |