test/evp_extra_test.c: Peek at the error instead of getting it.
If there is an error report, we want to get it printed too.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15604)
Richard Levitte
2 years ago
1293 | 1293 | || !TEST_int_gt(BIO_get_mem_data(membio, &membuf), 0) |
1294 | 1294 | || !TEST_ptr(p8inf = d2i_PKCS8_PRIV_KEY_INFO_bio(membio, NULL)) |
1295 | 1295 | || !TEST_ptr(pkey2 = EVP_PKCS82PKEY(p8inf)) |
1296 | || !TEST_int_eq(ERR_get_error(), 0)) { | |
1296 | || !TEST_int_eq(ERR_peek_last_error(), 0)) { | |
1297 | 1297 | goto done; |
1298 | 1298 | } |
1299 | 1299 |