]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Re-enable RCU torture test on MACOSX
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 19 Feb 2025 17:55:42 +0000 (18:55 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Sat, 22 Feb 2025 16:44:34 +0000 (17:44 +0100)
This test was disabled due to "Stochastic failures in
the RCU test on MACOSX" by #23967, which sounds like an
issue that is probably fixed now.

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26834)

(cherry picked from commit 4d16d2f40a135830ee667e1588c75293a7b23480)

test/threadstest.c

index 9302fed1d68aeb7dddc0070edca0a2d3a709885d..1e44a5a5e34652ef95e8c6811847035a98ff763e 100644 (file)
@@ -295,7 +295,6 @@ static int torture_rw_high(void)
 }
 
 
-# ifndef OPENSSL_SYS_MACOSX 
 static CRYPTO_RCU_LOCK *rcu_lock = NULL;
 
 static int writer1_done = 0;
@@ -492,7 +491,6 @@ static int torture_rcu_high(void)
     contention = 1;
     return _torture_rcu();
 }
-# endif
 #endif
 
 static CRYPTO_ONCE once_run = CRYPTO_ONCE_STATIC_INIT;
@@ -1296,10 +1294,8 @@ int setup_tests(void)
 #if defined(OPENSSL_THREADS)
     ADD_TEST(torture_rw_low);
     ADD_TEST(torture_rw_high);
-# ifndef OPENSSL_SYS_MACOSX
     ADD_TEST(torture_rcu_low);
     ADD_TEST(torture_rcu_high);
-# endif
 #endif
     ADD_TEST(test_once);
     ADD_TEST(test_thread_local);