mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
gh-110367: Fix regrtest test_worker_output_on_failure() on ASAN build (#110387)
Set ASAN_OPTIONS="handle_segv=0" env var to run the test.
This commit is contained in:
parent
2bbbab212f
commit
af29282fce
3 changed files with 20 additions and 9 deletions
|
|
@ -67,11 +67,7 @@ class FaultHandlerTests(unittest.TestCase):
|
|||
|
||||
# Sanitizers must not handle SIGSEGV (ex: for test_enable_fd())
|
||||
option = 'handle_segv=0'
|
||||
for name in ('ASAN_OPTIONS', 'MSAN_OPTIONS', 'UBSAN_OPTIONS'):
|
||||
if name in env:
|
||||
env[name] += f':{option}'
|
||||
else:
|
||||
env[name] = option
|
||||
support.set_sanitizer_env_var(env, option)
|
||||
|
||||
with support.SuppressCrashReport():
|
||||
process = script_helper.spawn_python('-c', code,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue