浏览代码

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

master
Thom Wiggers 4 年前
父节点
当前提交
7557be7471
找不到此签名对应的密钥 GPG 密钥 ID: 1BB0A7CE26E363
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      test/test_functest.py

+ 1
- 1
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'}


正在加载...
取消
保存