[test] Add 'hwasan' feature and disable a test

This commit is contained in:
Vitaly Buka 2022-08-17 11:49:38 -07:00
parent 4ceff69636
commit fae656b2dd
2 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@
// REQUIRES: system-linux
// UNSUPPORTED: msan
// UNSUPPORTED: asan
// UNSUPPORTED: hwasan
//
// RUN: ulimit -v 1048576
// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify -triple=x86_64 %s

View File

@ -102,6 +102,8 @@ class LLVMConfig(object):
sanitizers = frozenset(x.lower() for x in sanitizers.split(';'))
if 'address' in sanitizers:
features.add('asan')
if 'hwaddress' in sanitizers:
features.add('hwasan')
if 'memory' in sanitizers or 'memorywithorigins' in sanitizers:
features.add('msan')
if 'undefined' in sanitizers: