Skip to content

Commit daacbf5

Browse files
committed
Skip tests if sanitizer is active
1 parent 48ffdb4 commit daacbf5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_perf_profiler.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import sysconfig
66
from test.support.script_helper import make_script
77
from test.support.os_helper import temp_dir
8+
from test.support import check_sanitizer
89

910

1011
def get_perf_version():
@@ -39,6 +40,9 @@ def get_perf_version():
3940
if "no-omit-frame-pointe" not in sysconfig.get_config_var("CFLAGS"):
4041
raise unittest.SkipTest("Unwinding without frame pointer is unreliable")
4142

43+
if check_sanitizer(address=True, memory=True, ub=True):
44+
raise unittest.SkipTest("Perf unwinding doesn't work with sanitizers")
45+
4246

4347
def run_perf(cwd, *args, **env_vars):
4448
if env_vars:

0 commit comments

Comments
 (0)