From 9cfad1d7205d20c61ff1f6eeb4e30d799b753807 Mon Sep 17 00:00:00 2001 From: Sumanth Gundapaneni Date: Wed, 16 Dec 2015 19:09:51 +0000 Subject: [PATCH] Fix the failing windows clang unit tests. NFC Some tests are missing the {{(.exe)?}} suffix on the exectables which the FileCheck is grepping for. This will ensure, the lit tests are clean on windows Differential Revision: http://reviews.llvm.org/D15579 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255804 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Driver/mingw-useld.c | 8 ++++---- test/Driver/mips-mti-linux.c | 1 + test/Driver/myriad-toolchain.c | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/test/Driver/mingw-useld.c b/test/Driver/mingw-useld.c index 3bdd5a8e66..a0ab5a9338 100644 --- a/test/Driver/mingw-useld.c +++ b/test/Driver/mingw-useld.c @@ -1,19 +1,19 @@ // RUN: %clang -### -target i686-pc-windows-gnu --sysroot=%S/Inputs/mingw_clang_tree/mingw32 %s 2>&1 | FileCheck -check-prefix=CHECK_LD_32 %s -// CHECK_LD_32: {{ld|ld.exe}}" +// CHECK_LD_32: ld{{(.exe)?}}" // CHECK_LD_32: "i386pe" // CHECK_LD_32-NOT: "-flavor" "gnu" // RUN: %clang -### -target i686-pc-windows-gnu --sysroot=%S/Inputs/mingw_clang_tree/mingw32 %s -fuse-ld=lld 2>&1 | FileCheck -check-prefix=CHECK_LLD_32 %s // CHECK_LLD_32-NOT: invalid linker name in argument -// CHECK_LLD_32: lld" "-flavor" "gnu" +// CHECK_LLD_32: lld{{(.exe)?}}" "-flavor" "gnu" // CHECK_LLD_32: "i386pe" // RUN: %clang -### -target x86_64-pc-windows-gnu --sysroot=%S/Inputs/mingw_clang_tree/mingw32 %s -fuse-ld=lld 2>&1 | FileCheck -check-prefix=CHECK_LLD_64 %s // CHECK_LLD_64-NOT: invalid linker name in argument -// CHECK_LLD_64: lld" "-flavor" "gnu" +// CHECK_LLD_64: lld{{(.exe)?}}" "-flavor" "gnu" // CHECK_LLD_64: "i386pep" // RUN: %clang -### -target arm-pc-windows-gnu --sysroot=%S/Inputs/mingw_clang_tree/mingw32 %s -fuse-ld=lld 2>&1 | FileCheck -check-prefix=CHECK_LLD_ARM %s // CHECK_LLD_ARM-NOT: invalid linker name in argument -// CHECK_LLD_ARM: lld" "-flavor" "gnu" +// CHECK_LLD_ARM: lld{{(.exe)?}}" "-flavor" "gnu" // CHECK_LLD_ARM: "thumb2pe" diff --git a/test/Driver/mips-mti-linux.c b/test/Driver/mips-mti-linux.c index 1549dc5b42..e3560e2044 100644 --- a/test/Driver/mips-mti-linux.c +++ b/test/Driver/mips-mti-linux.c @@ -4,6 +4,7 @@ // it here to test that we are producing the correct paths/flags. // Ideally, we'd like to have an --llvm-toolchain option similar to // the --gcc-toolchain one. +// REQUIRES: mips-registered-target // = Big-endian, mips32r2, hard float // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ diff --git a/test/Driver/myriad-toolchain.c b/test/Driver/myriad-toolchain.c index 5fc2772559..74b804c5d0 100644 --- a/test/Driver/myriad-toolchain.c +++ b/test/Driver/myriad-toolchain.c @@ -38,8 +38,8 @@ // RUN: %clang -target shave-myriad -c -### %s -isystem somewhere -Icommon -Wa,-yippee 2>&1 \ // RUN: | FileCheck %s -check-prefix=MOVICOMPILE -// MOVICOMPILE: moviCompile" "-S" "-fno-exceptions" "-mcpu=myriad2" "-DMYRIAD2" "-isystem" "somewhere" "-I" "common" -// MOVICOMPILE: moviAsm" "-no6thSlotCompression" "-cv:myriad2" "-noSPrefixing" "-a" +// MOVICOMPILE: moviCompile{{(.exe)?}}" "-S" "-fno-exceptions" "-mcpu=myriad2" "-DMYRIAD2" "-isystem" "somewhere" "-I" "common" +// MOVICOMPILE: moviAsm{{(.exe)?}}" "-no6thSlotCompression" "-cv:myriad2" "-noSPrefixing" "-a" // MOVICOMPILE: "-yippee" "-i:somewhere" "-i:common" "-elf" // RUN: %clang -target shave-myriad -c -### %s -DEFINE_ME -UNDEFINE_ME 2>&1 \ -- 2.40.0