From 578a9d66ce445d641be0d21b3f1213083ed6351c Mon Sep 17 00:00:00 2001 From: Thom Wiggers Date: Wed, 18 Nov 2020 09:27:46 +0100 Subject: [PATCH] Disable asan if clang is mentioned in CC (like in 'ccache clang') --- test/test_functest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_functest.py b/test/test_functest.py index 8249e6cd..c23f9b97 100644 --- a/test/test_functest.py +++ b/test/test_functest.py @@ -54,7 +54,7 @@ def test_functest_sanitizers(implementation, impl_path, test_dir, init, destr): dest_dir = os.path.join(test_dir, 'bin') env = None - if platform.machine() == 'ppc' and os.environ.get('CC', 'gcc') == 'clang': + if platform.machine() == 'ppc' and 'clang' in os.environ.get('CC', 'gcc'): raise unittest.SkipTest("Clang does not support ASAN on ppc") elif platform.machine() in ['armv7l', 'aarch64']: env = {'ASAN_OPTIONS': 'detect_leaks=0'}