forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-112536: Add --tsan test for reasonable TSAN execution times. (…
- Loading branch information
Showing
5 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Set of tests run by default if --tsan is specified. The tests below were | ||
# chosen because they use threads and run in a reasonable amount of time. | ||
|
||
TSAN_TESTS = [ | ||
'test_code', | ||
'test_enum', | ||
'test_functools', | ||
'test_httpservers', | ||
'test_imaplib', | ||
'test_importlib', | ||
'test_io', | ||
'test_logging', | ||
'test_ssl', | ||
'test_syslog', | ||
'test_thread', | ||
'test_threadedtempfile', | ||
'test_threading_local', | ||
'test_threadsignals', | ||
] | ||
|
||
|
||
def setup_tsan_tests(cmdline_args): | ||
if not cmdline_args: | ||
cmdline_args[:] = TSAN_TESTS[:] |
2 changes: 2 additions & 0 deletions
2
Misc/NEWS.d/next/Tests/2024-03-11-23-20-28.gh-issue-112536.Qv1RrX.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Add --tsan to test.regrtest for running TSAN tests in reasonable execution | ||
times. Patch by Donghee Na. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## reference: https://github.com/google/sanitizers/wiki/ThreadSanitizerSuppressions | ||
race:get_allocator_unlocked | ||
race:set_allocator_unlocked | ||
race:mi_heap_visit_pages | ||
race:_mi_heap_delayed_free_partial |