diff options
author | 2024-11-20 11:33:57 +0100 | |
---|---|---|
committer | 2024-11-20 11:34:52 +0100 | |
commit | 59c6bd82410f2b431070648ace30f891a8dcf439 (patch) | |
tree | c8ec40f5bce8b9f90599688bc64279e23376083a | |
parent | Disable system site-packages via GENTOO_CPYTHON_BUILD var (diff) | |
download | cpython-gentoo-3.14.0a2.tar.gz cpython-gentoo-3.14.0a2.tar.bz2 cpython-gentoo-3.14.0a2.zip |
Skip strace tests when LD_PRELOAD is usedgentoo-3.14.0a3gentoo-3.14.0a2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | Lib/test/support/strace_helper.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/support/strace_helper.py b/Lib/test/support/strace_helper.py index 90d4b5bccb6..d54f2bbaf76 100644 --- a/Lib/test/support/strace_helper.py +++ b/Lib/test/support/strace_helper.py @@ -1,3 +1,4 @@ +import os import re import sys import textwrap @@ -160,6 +161,9 @@ def requires_strace(): if sys.platform != "linux": return unittest.skip("Linux only, requires strace.") + if "LD_PRELOAD" in os.environ: + return unittest.skip("LD_PRELOAD can cause extra syscalls") + if support.check_sanitizer(address=True, memory=True): return unittest.skip("LeakSanitizer does not work under ptrace (strace, gdb, etc)") |