aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-12-11 07:06:09 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-12-11 07:06:09 +0000
commit5e4ccb4d19e0f62c5f9ddb506297e86e3f2fc21c (patch)
treeeafdf4f2ca107c8c41a30bd4221e60031f59df9f
parent007c44ccbd048472469514284697f23a58475f35 (diff)
clang/test/Driver: Introduce the feature "clang-driver", set if gcc driver is not used.
It is not set at targetting cygming. See PR12920. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169824 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Driver/debug-options-as.c2
-rw-r--r--test/Driver/fast-math.c2
-rw-r--r--test/Driver/fsanitize-blacklist.c2
-rw-r--r--test/Driver/integrated-as.c3
-rw-r--r--test/Driver/integrated-as.s2
-rw-r--r--test/Driver/linker-opts.c2
-rw-r--r--test/Driver/warning-options_pedantic.cpp2
-rw-r--r--test/lit.cfg4
8 files changed, 14 insertions, 5 deletions
diff --git a/test/Driver/debug-options-as.c b/test/Driver/debug-options-as.c
index 57036e42db..20e104e80b 100644
--- a/test/Driver/debug-options-as.c
+++ b/test/Driver/debug-options-as.c
@@ -1,5 +1,5 @@
// cygming have not supported integrated-as yet.
-// XFAIL: cygwin,mingw32
+// REQUIRES: clang-driver
//
// Check to make sure clang is somewhat picky about -g options.
// (Delived from debug-options.c)
diff --git a/test/Driver/fast-math.c b/test/Driver/fast-math.c
index 17bf6ed617..91af2e1dce 100644
--- a/test/Driver/fast-math.c
+++ b/test/Driver/fast-math.c
@@ -5,7 +5,7 @@
// support.
//
// Both of them use gcc driver for as.
-// XFAIL: cygwin,mingw32
+// REQUIRES: clang-driver
//
// RUN: %clang -### -fno-honor-infinities -c %s 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-NO-INFS %s
diff --git a/test/Driver/fsanitize-blacklist.c b/test/Driver/fsanitize-blacklist.c
index 353587bfc7..5327bc16a3 100644
--- a/test/Driver/fsanitize-blacklist.c
+++ b/test/Driver/fsanitize-blacklist.c
@@ -15,4 +15,4 @@
// CHECK-NO-SUCH-FILE: error: no such file or directory: 'unexisting.txt'
// PR12920
-// XFAIL: cygwin,mingw32
+// REQUIRES: clang-driver
diff --git a/test/Driver/integrated-as.c b/test/Driver/integrated-as.c
index e0131754b0..2045e8b559 100644
--- a/test/Driver/integrated-as.c
+++ b/test/Driver/integrated-as.c
@@ -1,4 +1,7 @@
// RUN: %clang -### -c -save-temps -integrated-as %s 2>&1 | FileCheck %s
+// gcc is invoked instead of clang-cc1as with gcc-driver -save-temps.
+// REQUIRES: clang-driver
+
// CHECK: cc1as
// CHECK: -relax-all
diff --git a/test/Driver/integrated-as.s b/test/Driver/integrated-as.s
index 2b07484fe1..d614418276 100644
--- a/test/Driver/integrated-as.s
+++ b/test/Driver/integrated-as.s
@@ -1,4 +1,6 @@
// RUN: %clang -### -c -integrated-as %s 2>&1 | FileCheck %s
+// REQUIRES: clang-driver
+
// CHECK: cc1as
// CHECK-NOT: -relax-all
diff --git a/test/Driver/linker-opts.c b/test/Driver/linker-opts.c
index 2a96a17c70..623426e057 100644
--- a/test/Driver/linker-opts.c
+++ b/test/Driver/linker-opts.c
@@ -2,4 +2,4 @@
// CHECK: "-L{{.*}}/test1"
// GCC driver is used as linker on cygming. It should be aware of LIBRARY_PATH.
-// XFAIL: cygwin,mingw32,win32
+// REQUIRES: clang-driver
diff --git a/test/Driver/warning-options_pedantic.cpp b/test/Driver/warning-options_pedantic.cpp
index c6d11be73d..e40f7716f4 100644
--- a/test/Driver/warning-options_pedantic.cpp
+++ b/test/Driver/warning-options_pedantic.cpp
@@ -4,4 +4,4 @@
// RUN: %clang -### -pedantic -pedantic -no-pedantic -pedantic %s 2>&1 | FileCheck -check-prefix=PEDANTIC %s
// RUN: %clang -### -pedantic -pedantic -no-pedantic -Wpedantic %s 2>&1 | FileCheck -check-prefix=NO_PEDANTIC %s
// PEDANTIC: -pedantic
-// XFAIL: cygwin,mingw32
+// REQUIRES: clang-driver
diff --git a/test/lit.cfg b/test/lit.cfg
index 1a4fcbdec7..fae5fa099e 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -245,6 +245,10 @@ if os.path.exists("/dev/fd/0") and sys.platform not in ['cygwin']:
if not re.match(r'^x86_64.*-(win32|mingw32)$', config.target_triple):
config.available_features.add('LP64')
+# [PR12920] "clang-driver" -- set if gcc driver is not used.
+if not re.match(r'.*-(cygwin|mingw32)$', config.target_triple):
+ config.available_features.add('clang-driver')
+
# Registered Targets
def get_llc_props(tool):
set_of_targets = set()