Commit c86b202ef4 for openssl.org
commit c86b202ef4973e0e4d4dcc48d56db0c8b0a834c5
Author: Andrew Dinh <andrewd@openssl.org>
Date: Wed Jul 1 23:37:20 2026 +0700
Port script11
Assisted-by: Claude:claude-sonnet-4-6
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša NedvÄ›dický <sashan@openssl.org>
MergeDate: Fri Jul 17 08:02:02 2026
(Merged from https://github.com/openssl/openssl/pull/31821)
diff --git a/test/quic_multistream_test.c b/test/quic_multistream_test.c
index cf7cca98b9..a8dae2966a 100644
--- a/test/quic_multistream_test.c
+++ b/test/quic_multistream_test.c
@@ -2074,42 +2074,8 @@ static const struct script_op script_10[] = {
};
/* 11. Many threads accepted on the same client connection */
-static const struct script_op script_11_child[] = {
- OP_C_ACCEPT_STREAM_WAIT(a),
- OP_C_READ_EXPECT(a, "foo", 3),
- OP_SLEEP(10),
- OP_C_EXPECT_FIN(a),
-
- OP_END
-};
-
static const struct script_op script_11[] = {
- OP_C_SET_ALPN("ossltest"),
- OP_C_CONNECT_WAIT(),
- OP_C_SET_DEFAULT_STREAM_MODE(SSL_DEFAULT_STREAM_MODE_NONE),
-
- OP_NEW_THREAD(5, script_11_child),
-
- OP_S_NEW_STREAM_BIDI(a, ANY_ID),
- OP_S_WRITE(a, "foo", 3),
- OP_S_CONCLUDE(a),
-
- OP_S_NEW_STREAM_BIDI(b, ANY_ID),
- OP_S_WRITE(b, "foo", 3),
- OP_S_CONCLUDE(b),
-
- OP_S_NEW_STREAM_BIDI(c, ANY_ID),
- OP_S_WRITE(c, "foo", 3),
- OP_S_CONCLUDE(c),
-
- OP_S_NEW_STREAM_BIDI(d, ANY_ID),
- OP_S_WRITE(d, "foo", 3),
- OP_S_CONCLUDE(d),
-
- OP_S_NEW_STREAM_BIDI(e, ANY_ID),
- OP_S_WRITE(e, "foo", 3),
- OP_S_CONCLUDE(e),
-
+ /* test moved to test/radix/quic_tests.c */
OP_END
};
diff --git a/test/radix/quic_tests.c b/test/radix/quic_tests.c
index c732b62393..a101cad924 100644
--- a/test/radix/quic_tests.c
+++ b/test/radix/quic_tests.c
@@ -951,7 +951,48 @@ DEF_SCRIPT(script_11_child_3,
OP_EXPECT_FIN(C3);
}
-DEF_SCRIPT(script_11, "place holder for multistrem script_11")
+DEF_SCRIPT(script_11_child_4,
+ "child: accept stream from C, read, sleep, expect FIN")
+{
+ OP_ACCEPT_STREAM_WAIT(C, C4, 0 /* bidirectional */);
+ OP_READ_EXPECT_B(C4, "foo");
+ OP_SLEEP(10);
+ OP_EXPECT_FIN(C4);
+}
+
+DEF_SCRIPT(script_11, "Many threads accepted on the same client connection")
+{
+ OP_SIMPLE_PAIR_CONN_ND();
+ OP_ACCEPT_CONN_WAIT(L, S, 0);
+
+ OP_SPAWN_THREAD(script_11_child_0);
+ OP_SPAWN_THREAD(script_11_child_1);
+ OP_SPAWN_THREAD(script_11_child_2);
+ OP_SPAWN_THREAD(script_11_child_3);
+ OP_SPAWN_THREAD(script_11_child_4);
+
+ OP_NEW_STREAM(S, Sa, 0 /* bidirectional */);
+ OP_WRITE_B(Sa, "foo");
+ OP_CONCLUDE(Sa);
+
+ OP_NEW_STREAM(S, Sb, 0 /* bidirectional */);
+ OP_WRITE_B(Sb, "foo");
+ OP_CONCLUDE(Sb);
+
+ OP_NEW_STREAM(S, Sc, 0 /* bidirectional */);
+ OP_WRITE_B(Sc, "foo");
+ OP_CONCLUDE(Sc);
+
+ OP_NEW_STREAM(S, Sd, 0 /* bidirectional */);
+ OP_WRITE_B(Sd, "foo");
+ OP_CONCLUDE(Sd);
+
+ OP_NEW_STREAM(S, Se, 0 /* bidirectional */);
+ OP_WRITE_B(Se, "foo");
+ OP_CONCLUDE(Se);
+ OP_SLEEP(10);
+}
+
{
}