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:10 +0200 |
commit | f1b7a6c247502cefe414921b880512e0e1d3e9ca (patch) | |
tree | 353de43b9b81af6f86edea923f50b390e7990cd1 /test/cmsapitest.c | |
parent | 6001ba23e089bad44676a30248ae5afd68da442e (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 a19fb0683c..d5c4cb8481 100644 --- a/test/cmsapitest.c +++ b/test/cmsapitest.c @@ -327,8 +327,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; |