From a191d6f78e10268845b24483b3ac65856d7af868 Mon Sep 17 00:00:00 2001 From: Sam Gross Date: Thu, 6 Feb 2025 18:37:05 -0500 Subject: [PATCH] gh-117657: Include all of test_free_threading in TSAN tests (#129749) --- Lib/test/libregrtest/tsan.py | 2 +- Tools/tsan/suppressions_free_threading.txt | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Lib/test/libregrtest/tsan.py b/Lib/test/libregrtest/tsan.py index 1b32deec12bd..90c9f0db0af2 100644 --- a/Lib/test/libregrtest/tsan.py +++ b/Lib/test/libregrtest/tsan.py @@ -25,7 +25,7 @@ TSAN_TESTS = [ 'test_threading_local', 'test_threadsignals', 'test_weakref', - 'test_free_threading.test_slots', + 'test_free_threading', ] # Tests that should be run with `--parallel-threads=N` under TSAN. These tests diff --git a/Tools/tsan/suppressions_free_threading.txt b/Tools/tsan/suppressions_free_threading.txt index b25b3700b356..c2509cae7b9e 100644 --- a/Tools/tsan/suppressions_free_threading.txt +++ b/Tools/tsan/suppressions_free_threading.txt @@ -43,5 +43,11 @@ race_top:PyThreadState_Clear # Only seen on macOS, sample: https://gist.github.com/aisk/dda53f5d494a4556c35dde1fce03259c race_top:set_default_allocator_unlocked +# gh-129068: race on shared range iterators (test_free_threading.test_zip.ZipThreading.test_threading) +race_top:rangeiter_next + +# gh-129748: test.test_free_threading.test_slots.TestSlots.test_object +race_top:mi_block_set_nextx + # https://gist.github.com/mpage/6962e8870606cfc960e159b407a0cb40 thread:pthread_create -- 2.47.3