From: Mandeep Singh Grang Date: Tue, 18 Oct 2016 19:22:20 +0000 (+0000) Subject: Fix clang tests X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76b1a6d19f4e759c7476638d799afcf5052155c4;p=clang Fix clang tests Summary: Add REQUIRES for target specific tests. Patch by Azharuddin Mohammed. Reviewers: apazos, weimingz, rsmith, ddunbar, spop, mgrang Subscribers: sebpop, llvm-commits Differential Revision: https://reviews.llvm.org/D25574 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284517 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/mips-cs.cpp b/test/Driver/mips-cs.cpp index bca2ab9fa2..6ef4c5d435 100644 --- a/test/Driver/mips-cs.cpp +++ b/test/Driver/mips-cs.cpp @@ -1,3 +1,5 @@ +// REQUIRES: mips-registered-target +// // Check frontend and linker invocations on Mentor Graphics MIPS toolchain. // // = Big-endian, hard float diff --git a/test/Driver/mips-fsf.cpp b/test/Driver/mips-fsf.cpp index 68ee490a88..b94da69789 100644 --- a/test/Driver/mips-fsf.cpp +++ b/test/Driver/mips-fsf.cpp @@ -1,3 +1,5 @@ +// REQUIRES: mips-registered-target + // Check frontend and linker invocations on FSF MIPS toolchain. // // = Big-endian, mips32, hard float diff --git a/test/Driver/mips-img-v2.cpp b/test/Driver/mips-img-v2.cpp index 34cf3d726e..69250b716e 100644 --- a/test/Driver/mips-img-v2.cpp +++ b/test/Driver/mips-img-v2.cpp @@ -1,3 +1,5 @@ +// REQUIRES: mips-registered-target + // Check frontend and linker invocations on the IMG v2 MIPS toolchain. // -EB -mips32r6 -mhard-float -mabi=32 diff --git a/test/Driver/mips-img.cpp b/test/Driver/mips-img.cpp index 9d8cfba13e..c97bb9478e 100644 --- a/test/Driver/mips-img.cpp +++ b/test/Driver/mips-img.cpp @@ -1,3 +1,5 @@ +// REQUIRES: mips-registered-target + // Check frontend and linker invocations on the IMG MIPS toolchain. // // = Big-endian, mips32r6 diff --git a/test/Driver/sysroot.c b/test/Driver/sysroot.c index 3080f76e03..4e9ed2bf6b 100644 --- a/test/Driver/sysroot.c +++ b/test/Driver/sysroot.c @@ -1,3 +1,5 @@ +// REQUIRES: x86-registered-target +// // Check that --sysroot= also applies to header search paths. // RUN: %clang -target i386-unk-unk --sysroot=/FOO -### -E %s 2> %t1 // RUN: FileCheck --check-prefix=CHECK-SYSROOTEQ < %t1 %s