diff options
author | Hugo Landau <hlandau@openssl.org> | 2024-02-05 18:19:38 +0000 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2024-04-19 09:31:06 +0100 |
commit | 66e0fb8dc1dce0f9dcfd930cb96cba9dac1b51ad (patch) | |
tree | fc133b6d27c1cb69fdd7f2380102c27085891bbb | |
parent | 3f592185a07b0bca4c1e871bd9d4f90c76bc8e8c (diff) |
QUIC RADIX: Add test of multithreading functionality
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23487)
-rw-r--r-- | test/radix/quic_tests.c | 15 |
1 files changed, 15 insertions, 0 deletions
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) }; |