From: Andrew Dinh Date: Wed, 24 Jun 2026 16:21:16 +0000 (+0700) Subject: Port script_9 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=7f2003289a7f657ad442ef66f02993f015aadcf0;p=thirdparty%2Fopenssl.git Port script_9 Assisted-by: Claude:claude-sonnet-4-6 Reviewed-by: Saša Nedvědický Reviewed-by: Norbert Pocs MergeDate: Tue Jun 30 07:54:51 2026 (Merged from https://github.com/openssl/openssl/pull/31707) --- diff --git a/test/quic_multistream_test.c b/test/quic_multistream_test.c index 2e7def766ee..ea77aac6947 100644 --- a/test/quic_multistream_test.c +++ b/test/quic_multistream_test.c @@ -2063,16 +2063,7 @@ static const struct script_op script_8[] = { /* 9. Unidirectional default stream mode test (server sends first on bidi) */ static const struct script_op script_9[] = { - OP_C_SET_ALPN("ossltest"), - OP_C_CONNECT_WAIT(), - - OP_C_SET_DEFAULT_STREAM_MODE(SSL_DEFAULT_STREAM_MODE_AUTO_UNI), - OP_S_NEW_STREAM_BIDI(a, S_BIDI_ID(0)), - OP_S_WRITE(a, "apple", 5), - OP_C_READ_EXPECT(DEFAULT, "apple", 5), - OP_C_WRITE(DEFAULT, "orange", 6), - OP_S_READ_EXPECT(a, "orange", 6), - + /* 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 f18a52622b3..a770f9f018f 100644 --- a/test/radix/quic_tests.c +++ b/test/radix/quic_tests.c @@ -885,8 +885,19 @@ DEF_SCRIPT(script_8, "Unidirectional default stream mode (server sends first)") OP_WRITE_FAIL(C); } -DEF_SCRIPT(script_9, "place holder for multistrem script_9") +/* 9. Unidirectional default stream mode test (server sends first on bidi) */ +DEF_SCRIPT(script_9, "Unidirectional default stream mode (server sends bidi first)") { + OP_SIMPLE_PAIR_CONN(); + OP_SET_DEFAULT_STREAM_MODE(C, SSL_DEFAULT_STREAM_MODE_AUTO_UNI); + + OP_ACCEPT_CONN_WAIT(L, S, 0); + OP_NEW_STREAM(S, Sa, 0 /* bidirectional */); + OP_WRITE(Sa, "apple", 5); + + OP_READ_EXPECT(C, "apple", 5); + OP_WRITE(C, "orange", 6); + OP_READ_EXPECT(Sa, "orange", 6); } DEF_SCRIPT(script_10, "place holder for multistrem script_10")