summaryrefslogtreecommitdiffstats
path: root/test/quic_multistream_test.c
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-11-09 11:27:14 +0100
committerHugo Landau <hlandau@openssl.org>2023-12-21 09:12:06 +0100
commit499aacdc82c700bc381e21d16703607e323bbb9e (patch)
tree69b49010b2fa012df2a8f98706978d9c1a3c4a06 /test/quic_multistream_test.c
parentERR: Add ERR_pop() (diff)
downloadopenssl-499aacdc82c700bc381e21d16703607e323bbb9e.tar.xz
openssl-499aacdc82c700bc381e21d16703607e323bbb9e.zip
QUIC MULTISTREAM TEST: add OP_POP_ERR
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22674)
Diffstat (limited to 'test/quic_multistream_test.c')
-rw-r--r--test/quic_multistream_test.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/quic_multistream_test.c b/test/quic_multistream_test.c
index 604c2f986b..3782e65286 100644
--- a/test/quic_multistream_test.c
+++ b/test/quic_multistream_test.c
@@ -182,6 +182,7 @@ struct script_op {
#define OPK_C_SKIP_IF_UNBOUND 48
#define OPK_S_SET_INJECT_DATAGRAM 49
#define OPK_S_SHUTDOWN 50
+#define OPK_POP_ERR 51
#define EXPECT_CONN_CLOSE_APP (1U << 0)
#define EXPECT_CONN_CLOSE_REMOTE (1U << 1)
@@ -320,6 +321,8 @@ struct script_op {
{OPK_S_SET_INJECT_DATAGRAM, NULL, 0, NULL, NULL, 0, NULL, NULL, (f)},
#define OP_S_SHUTDOWN(error_code) \
{OPK_S_SHUTDOWN, NULL, (error_code)},
+#define OP_POP_ERR() \
+ {OPK_POP_ERR},
static OSSL_TIME get_time(void *arg)
{
@@ -1110,6 +1113,7 @@ static int run_script_worker(struct helper *h, const struct script_op *script,
case OPK_C_EXPECT_SSL_ERR:
case OPK_EXPECT_ERR_REASON:
case OPK_EXPECT_ERR_LIB:
+ case OPK_POP_ERR:
case OPK_SLEEP:
break;
@@ -1866,6 +1870,10 @@ static int run_script_worker(struct helper *h, const struct script_op *script,
}
break;
+ case OPK_POP_ERR:
+ ERR_pop();
+ break;
+
case OPK_SLEEP:
{
OSSL_sleep(op->arg2);