Improve "default_triple" specification: make it at the directory level for test/tools...
authorMehdi Amini <mehdi.amini@apple.com>
Wed, 16 Sep 2015 17:03:12 +0000 (17:03 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Wed, 16 Sep 2015 17:03:12 +0000 (17:03 +0000)
From: Mehdi Amini <mehdi.amini@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247819 91177308-0d34-0410-b5e6-96231b3b80d8

test/tools/llvm-mc/basic.test
test/tools/llvm-mc/fatal_warnings.test
test/tools/llvm-mc/line_end_with_space.test
test/tools/llvm-mc/lit.local.cfg
test/tools/llvm-mc/no_warnings.test

index cfc372ef044e454a5df0ed51fce7ba5d2c3383cb..edac65257e5532a1b733cd6e7d8c2bf92d127084 100644 (file)
@@ -1,4 +1,3 @@
 # 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
index 3761ec4b26f6ecd2a0cb52a9aa170247d039e909..df73ad8b7cf3ea6ec79d659170b0ff4438c58ced 100644 (file)
@@ -1,6 +1,5 @@
 # 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
index 4c365f6a8d566a18eb6c838a52f786afe719a502..673d05a68067cd16a960e6e5f72718034bd057f7 100644 (file)
@@ -1,2 +1 @@
 RUN: llvm-mc -disassemble %s
-# REQUIRES: default_triple
index f22d4aabd730f32dc0a60446fc8bce352e4be9b7..a1bda0f1fdc834c13ae35dc589c766b27bc1462f 100644 (file)
@@ -1,3 +1,4 @@
-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
 
index 46549c4710d2fa0a16ce5481edae75ef129a19d3..f542f1773c09a09e6e2d9b1ec9818a57e8c58854 100644 (file)
@@ -1,6 +1,5 @@
 # RUN: llvm-mc --no-warn %s 2>&1 | FileCheck %s
 # XFAIL: hexagon
-# REQUIRES: default_triple
 
 # CHECK-NOT: warning:
 .warning