Browse Source

Disable asan if clang is mentioned in CC (like in 'ccache clang')

kyber
Thom Wiggers 4 years ago
committed by Kris Kwiatkowski
parent
commit
578a9d66ce
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      test/test_functest.py

+ 1
- 1
test/test_functest.py View File

@@ -54,7 +54,7 @@ def test_functest_sanitizers(implementation, impl_path, test_dir,
init, destr): init, destr):
dest_dir = os.path.join(test_dir, 'bin') dest_dir = os.path.join(test_dir, 'bin')
env = None 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") raise unittest.SkipTest("Clang does not support ASAN on ppc")
elif platform.machine() in ['armv7l', 'aarch64']: elif platform.machine() in ['armv7l', 'aarch64']:
env = {'ASAN_OPTIONS': 'detect_leaks=0'} env = {'ASAN_OPTIONS': 'detect_leaks=0'}


Loading…
Cancel
Save