Don't run tests that use undefined behavior sanitizer inside an
address-sanitized LLDB. The tests don't support that
configuration. Incidentally they were skipped on green dragon for a
different reason, so this hasn't come up there before.
"""Decorate the item to skip test unless -fsanitize=undefined is supported."""
def is_compiler_clang_with_ubsan(self):
+ if is_running_under_asan():
+ return "Undefined behavior sanitizer tests are disabled when runing under ASAN"
+
# Write out a temp file which exhibits UB.
inputf = tempfile.NamedTemporaryFile(suffix='.c', mode='w')
inputf.write('int main() { int x = 0; return x / x; }\n')