mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-03 18:46:43 +08:00
Static variable holding handle to the last raised exception is made thread-local on compilers that support C++11 keyword thread_local (MCVC++ 14+, GCC 4.8+, ICC 14+, CLang). Test bugs fclasses bug28217 is added (BAD on vc < 14 and gcc < 4.8). Test case tuning bugs/fclasses/bug28217
18 lines
813 B
Plaintext
18 lines
813 B
Plaintext
puts "Testing intensive raising exceptions in parallel threads"
|
|
puts "0028217: E r r o r handling is not thread safe and causing memory corruption and sporadic crashes"
|
|
|
|
# this test will fail on vc10-13 and gcc less than 4.8
|
|
set dver [dversion]
|
|
if { ( [regexp {Compiler: MS Visual C[+][+] ([0-9]+)} $dver res ver] && $ver < 14 ) ||
|
|
( [regexp {Compiler: GCC ([0-9]+[.][0-9]+)} $dver res ver] && $ver < 4.8 ) } {
|
|
puts "TODO OCC28217 ALL: TEST INCOMPLETE"
|
|
puts "TODO OCC28217 Windows: An exception was caught"
|
|
puts "TODO OCC28217 Windows: \\*\\* Exception \\*\\*.*"
|
|
puts "TODO ?OCC28217 Linux: An exception was caught"
|
|
puts "TODO ?OCC28217 Linux: \\*\\* Exception \\*\\*.*"
|
|
puts "TODO ?OCC28217 Linux: \\*\\*\\* Abort"
|
|
puts "TODO ?OCC28217 Linux: ... The exception is"
|
|
}
|
|
pload QAcommands
|
|
OCC28217
|