From: Mehdi Amini <mehdi.amini@apple.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247819
91177308-0d34-0410-b5e6-
96231b3b80d8
# RUN: not llvm-mc %t.blah -o %t2 2>&1 | FileCheck --check-prefix=ENOENT %s
-# REQUIRES: default_triple
# ENOENT: {{.*}}.blah: {{[Nn]}}o such file or directory
# RUN: not llvm-mc --fatal-warnings %s 2>&1 | FileCheck %s
# XFAIL: hexagon
-# REQUIRES: default_triple
# CHECK: error: .warning directive invoked in source file
.warning
RUN: llvm-mc -disassemble %s
-# REQUIRES: default_triple
-if not config.target_triple:
+# Requires a non-empty default triple for these tests
+if 'default_triple' not in config.available_features:
config.unsupported = True
# RUN: llvm-mc --no-warn %s 2>&1 | FileCheck %s
# XFAIL: hexagon
-# REQUIRES: default_triple
# CHECK-NOT: warning:
.warning