mirror of
https://github.com/openssl/openssl.git
synced 2025-01-12 13:36:28 +08:00
QUIC MULTISTREAM TEST: Make error tests non-mutating and restore error code test
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22674)
This commit is contained in:
parent
499aacdc82
commit
f12ea1f1e0
@ -1858,14 +1858,14 @@ static int run_script_worker(struct helper *h, const struct script_op *script,
|
|||||||
|
|
||||||
case OPK_EXPECT_ERR_REASON:
|
case OPK_EXPECT_ERR_REASON:
|
||||||
{
|
{
|
||||||
if (!TEST_size_t_eq((size_t)ERR_GET_REASON(ERR_get_error()), op->arg1))
|
if (!TEST_size_t_eq((size_t)ERR_GET_REASON(ERR_peek_last_error()), op->arg1))
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OPK_EXPECT_ERR_LIB:
|
case OPK_EXPECT_ERR_LIB:
|
||||||
{
|
{
|
||||||
if (!TEST_size_t_eq((size_t)ERR_GET_LIB(ERR_get_error()), op->arg1))
|
if (!TEST_size_t_eq((size_t)ERR_GET_LIB(ERR_peek_last_error()), op->arg1))
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -2723,8 +2723,14 @@ static const struct script_op script_20_child[] = {
|
|||||||
|
|
||||||
OP_C_READ_FAIL_WAIT (a)
|
OP_C_READ_FAIL_WAIT (a)
|
||||||
OP_C_EXPECT_SSL_ERR (a, SSL_ERROR_SYSCALL)
|
OP_C_EXPECT_SSL_ERR (a, SSL_ERROR_SYSCALL)
|
||||||
OP_EXPECT_ERR_LIB (ERR_LIB_SYS)
|
|
||||||
|
OP_EXPECT_ERR_LIB (ERR_LIB_SSL)
|
||||||
|
OP_EXPECT_ERR_REASON (SSL_R_PROTOCOL_IS_SHUTDOWN)
|
||||||
|
|
||||||
|
OP_POP_ERR ()
|
||||||
|
OP_EXPECT_ERR_LIB (ERR_LIB_SSL)
|
||||||
OP_EXPECT_ERR_REASON (SSL_R_QUIC_NETWORK_ERROR)
|
OP_EXPECT_ERR_REASON (SSL_R_QUIC_NETWORK_ERROR)
|
||||||
|
|
||||||
OP_C_FREE_STREAM (a)
|
OP_C_FREE_STREAM (a)
|
||||||
|
|
||||||
OP_END
|
OP_END
|
||||||
|
Loading…
Reference in New Issue
Block a user