[cfe-commits] r169824 - in /cfe/trunk/test: Driver/debug-options-as.c Driver/fast-math.c Driver/fsanitize-blacklist.c Driver/integrated-as.c Driver/integrated-as.s Driver/linker-opts.c Driver/warning-options_pedantic.cpp lit.cfg

NAKAMURA Takumi geek4civic at gmail.com
Mon Dec 10 23:06:09 PST 2012


Author: chapuni
Date: Tue Dec 11 01:06:09 2012
New Revision: 169824

URL: http://llvm.org/viewvc/llvm-project?rev=169824&view=rev
Log:
clang/test/Driver: Introduce the feature "clang-driver", set if gcc driver is not used.

It is not set at targetting cygming. See PR12920.

Modified:
    cfe/trunk/test/Driver/debug-options-as.c
    cfe/trunk/test/Driver/fast-math.c
    cfe/trunk/test/Driver/fsanitize-blacklist.c
    cfe/trunk/test/Driver/integrated-as.c
    cfe/trunk/test/Driver/integrated-as.s
    cfe/trunk/test/Driver/linker-opts.c
    cfe/trunk/test/Driver/warning-options_pedantic.cpp
    cfe/trunk/test/lit.cfg

Modified: cfe/trunk/test/Driver/debug-options-as.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/debug-options-as.c?rev=169824&r1=169823&r2=169824&view=diff
==============================================================================
--- cfe/trunk/test/Driver/debug-options-as.c (original)
+++ cfe/trunk/test/Driver/debug-options-as.c Tue Dec 11 01:06:09 2012
@@ -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)

Modified: cfe/trunk/test/Driver/fast-math.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/fast-math.c?rev=169824&r1=169823&r2=169824&view=diff
==============================================================================
--- cfe/trunk/test/Driver/fast-math.c (original)
+++ cfe/trunk/test/Driver/fast-math.c Tue Dec 11 01:06:09 2012
@@ -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

Modified: cfe/trunk/test/Driver/fsanitize-blacklist.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/fsanitize-blacklist.c?rev=169824&r1=169823&r2=169824&view=diff
==============================================================================
--- cfe/trunk/test/Driver/fsanitize-blacklist.c (original)
+++ cfe/trunk/test/Driver/fsanitize-blacklist.c Tue Dec 11 01:06:09 2012
@@ -15,4 +15,4 @@
 // CHECK-NO-SUCH-FILE: error: no such file or directory: 'unexisting.txt'
 
 // PR12920
-// XFAIL: cygwin,mingw32
+// REQUIRES: clang-driver

Modified: cfe/trunk/test/Driver/integrated-as.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/integrated-as.c?rev=169824&r1=169823&r2=169824&view=diff
==============================================================================
--- cfe/trunk/test/Driver/integrated-as.c (original)
+++ cfe/trunk/test/Driver/integrated-as.c Tue Dec 11 01:06:09 2012
@@ -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

Modified: cfe/trunk/test/Driver/integrated-as.s
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/integrated-as.s?rev=169824&r1=169823&r2=169824&view=diff
==============================================================================
--- cfe/trunk/test/Driver/integrated-as.s (original)
+++ cfe/trunk/test/Driver/integrated-as.s Tue Dec 11 01:06:09 2012
@@ -1,4 +1,6 @@
 // RUN: %clang -### -c -integrated-as %s 2>&1 | FileCheck %s
 
+// REQUIRES: clang-driver
+
 // CHECK: cc1as
 // CHECK-NOT: -relax-all

Modified: cfe/trunk/test/Driver/linker-opts.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/linker-opts.c?rev=169824&r1=169823&r2=169824&view=diff
==============================================================================
--- cfe/trunk/test/Driver/linker-opts.c (original)
+++ cfe/trunk/test/Driver/linker-opts.c Tue Dec 11 01:06:09 2012
@@ -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

Modified: cfe/trunk/test/Driver/warning-options_pedantic.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/warning-options_pedantic.cpp?rev=169824&r1=169823&r2=169824&view=diff
==============================================================================
--- cfe/trunk/test/Driver/warning-options_pedantic.cpp (original)
+++ cfe/trunk/test/Driver/warning-options_pedantic.cpp Tue Dec 11 01:06:09 2012
@@ -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

Modified: cfe/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/lit.cfg?rev=169824&r1=169823&r2=169824&view=diff
==============================================================================
--- cfe/trunk/test/lit.cfg (original)
+++ cfe/trunk/test/lit.cfg Tue Dec 11 01:06:09 2012
@@ -245,6 +245,10 @@
 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()





More information about the cfe-commits mailing list