]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-117657: Add test_thread_local_bytecode to TSAN tests (gh-129753)
authorSam Gross <colesbury@gmail.com>
Tue, 11 Feb 2025 21:54:32 +0000 (16:54 -0500)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2025 21:54:32 +0000 (16:54 -0500)
Skip `test_no_copies_if_tlbc_disabled` when run under TSAN for now
due to a data race on the adaptive counter (see gh-129752).

Lib/test/libregrtest/tsan.py
Lib/test/test_thread_local_bytecode.py

index 51233724c8136fa81f339fd823b6afdfb9fe4cbf..2a656705d7b50889683d953d266db96337810ab2 100644 (file)
@@ -21,6 +21,7 @@ TSAN_TESTS = [
     'test_ssl',
     'test_syslog',
     'test_thread',
+    'test_thread_local_bytecode',
     'test_threadedtempfile',
     'test_threading',
     'test_threading_local',
index 7a8809c5ae7697facf3e5cc12a1380c6de38f782..ea52fb888ce25dde620413a2b727628a4a79357c 100644 (file)
@@ -109,6 +109,7 @@ class TLBCTests(unittest.TestCase):
         """)
         assert_python_ok("-X", "tlbc=1", "-c", code)
 
+    @support.skip_if_sanitizer("gh-129752: data race on adaptive counter", thread=True)
     def test_no_copies_if_tlbc_disabled(self):
         code = textwrap.dedent("""
         import queue