1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Author: Andreas Tille <tille@debian.org>
Last-Update: 2025-11-23
Description: Force test passing on architectures with TLS issues on 32 bit systems
--- a/CLHEP/Random/test/testThreaded.cc
+++ b/CLHEP/Random/test/testThreaded.cc
@@ -27,6 +27,10 @@
// threading
#if __cplusplus >= 201103L
+ // Skip threaded tests on architectures with known TLS issues
+ #if defined(__i386__) || defined(__arm__) || defined(__hppa__) || defined(__x32__)
+ #define CLHEP_RUN_THREADED_TESTS 0
+ #else
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 7)
#define CLHEP_RUN_THREADED_TESTS 1
#include <thread>
@@ -40,6 +44,7 @@
#else
#define CLHEP_RUN_THREADED_TESTS 0
#endif
+ #endif // architectures with known TLS issues
#else
#define CLHEP_RUN_THREADED_TESTS 0
|