From 66e0fb8dc1dce0f9dcfd930cb96cba9dac1b51ad Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Mon, 5 Feb 2024 18:19:38 +0000 Subject: QUIC RADIX: Add test of multithreading functionality Reviewed-by: Neil Horman Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/23487) --- test/radix/quic_tests.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/radix/quic_tests.c b/test/radix/quic_tests.c index 3398c9d4d5..4f4c9118af 100644 --- a/test/radix/quic_tests.c +++ b/test/radix/quic_tests.c @@ -24,10 +24,25 @@ DEF_SCRIPT(simple_conn, "simple connection to server") OP_READ_EXPECT_B(C, "orange"); } +DEF_SCRIPT(simple_thread_child, + "test that RADIX multithreading is working (child)") +{ +} + +DEF_SCRIPT(simple_thread, + "test that RADIX multithreading is working") +{ + size_t i; + + for (i = 0; i < 2; ++i) + OP_SPAWN_THREAD(simple_thread_child); +} + /* * List of Test Scripts * ============================================================================ */ static SCRIPT_INFO *const scripts[] = { USE(simple_conn) + USE(simple_thread) }; -- cgit v1.2.3