[llvm] r247819 - Improve "default_triple" specification: make it at the directory level for test/tools/llvm-mc
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 16 10:03:12 PDT 2015
Author: mehdi_amini
Date: Wed Sep 16 12:03:12 2015
New Revision: 247819
URL: http://llvm.org/viewvc/llvm-project?rev=247819&view=rev
Log:
Improve "default_triple" specification: make it at the directory level for test/tools/llvm-mc
From: Mehdi Amini <mehdi.amini at apple.com>
Modified:
llvm/trunk/test/tools/llvm-mc/basic.test
llvm/trunk/test/tools/llvm-mc/fatal_warnings.test
llvm/trunk/test/tools/llvm-mc/line_end_with_space.test
llvm/trunk/test/tools/llvm-mc/lit.local.cfg
llvm/trunk/test/tools/llvm-mc/no_warnings.test
Modified: llvm/trunk/test/tools/llvm-mc/basic.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mc/basic.test?rev=247819&r1=247818&r2=247819&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mc/basic.test (original)
+++ llvm/trunk/test/tools/llvm-mc/basic.test Wed Sep 16 12:03:12 2015
@@ -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
Modified: llvm/trunk/test/tools/llvm-mc/fatal_warnings.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mc/fatal_warnings.test?rev=247819&r1=247818&r2=247819&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mc/fatal_warnings.test (original)
+++ llvm/trunk/test/tools/llvm-mc/fatal_warnings.test Wed Sep 16 12:03:12 2015
@@ -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
Modified: llvm/trunk/test/tools/llvm-mc/line_end_with_space.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mc/line_end_with_space.test?rev=247819&r1=247818&r2=247819&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mc/line_end_with_space.test (original)
+++ llvm/trunk/test/tools/llvm-mc/line_end_with_space.test Wed Sep 16 12:03:12 2015
@@ -1,2 +1 @@
RUN: llvm-mc -disassemble %s
-# REQUIRES: default_triple
Modified: llvm/trunk/test/tools/llvm-mc/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mc/lit.local.cfg?rev=247819&r1=247818&r2=247819&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mc/lit.local.cfg (original)
+++ llvm/trunk/test/tools/llvm-mc/lit.local.cfg Wed Sep 16 12:03:12 2015
@@ -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
Modified: llvm/trunk/test/tools/llvm-mc/no_warnings.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mc/no_warnings.test?rev=247819&r1=247818&r2=247819&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mc/no_warnings.test (original)
+++ llvm/trunk/test/tools/llvm-mc/no_warnings.test Wed Sep 16 12:03:12 2015
@@ -1,6 +1,5 @@
# RUN: llvm-mc --no-warn %s 2>&1 | FileCheck %s
# XFAIL: hexagon
-# REQUIRES: default_triple
# CHECK-NOT: warning:
.warning
More information about the llvm-commits
mailing list