Hahnfeld created this revision. Hahnfeld added reviewers: atanasyan, rnk. Herald added subscribers: cfe-commits, jrtc27, arichardson, sdardis.
`ld{{.*}}"` seems to match the complete line for me which is failing the test. Only allow an optional `.exe` for Windows systems as most other tests do. Another possibility would be to collapse the greedy expression with the next check to avoid matching the full line. Repository: rC Clang https://reviews.llvm.org/D52619 Files: test/Driver/mips-abi.c Index: test/Driver/mips-abi.c =================================================================== --- test/Driver/mips-abi.c +++ test/Driver/mips-abi.c @@ -169,21 +169,21 @@ // TARGET-O32: "-triple" "mips-unknown-linux-gnu" // TARGET-O32: "-target-cpu" "mips32r2" // TARGET-O32: "-target-abi" "o32" -// TARGET-O32: ld{{.*}}" +// TARGET-O32: ld{{(.exe)?}}" // TARGET-O32: "-m" "elf32btsmip" // RUN: %clang -target mips-linux-gnu -mabi=n32 -### %s 2>&1 \ // RUN: | FileCheck -check-prefix=TARGET-N32 %s // TARGET-N32: "-triple" "mips64-unknown-linux-gnu" // TARGET-N32: "-target-cpu" "mips64r2" // TARGET-N32: "-target-abi" "n32" -// TARGET-N32: ld{{.*}}" +// TARGET-N32: ld{{(.exe)?}}" // TARGET-N32: "-m" "elf32btsmipn32" // RUN: %clang -target mips-linux-gnu -mabi=64 -### %s 2>&1 \ // RUN: | FileCheck -check-prefix=TARGET-N64 %s // TARGET-N64: "-triple" "mips64-unknown-linux-gnu" // TARGET-N64: "-target-cpu" "mips64r2" // TARGET-N64: "-target-abi" "n64" -// TARGET-N64: ld{{.*}}" +// TARGET-N64: ld{{(.exe)?}}" // TARGET-N64: "-m" "elf64btsmip"
Index: test/Driver/mips-abi.c =================================================================== --- test/Driver/mips-abi.c +++ test/Driver/mips-abi.c @@ -169,21 +169,21 @@ // TARGET-O32: "-triple" "mips-unknown-linux-gnu" // TARGET-O32: "-target-cpu" "mips32r2" // TARGET-O32: "-target-abi" "o32" -// TARGET-O32: ld{{.*}}" +// TARGET-O32: ld{{(.exe)?}}" // TARGET-O32: "-m" "elf32btsmip" // RUN: %clang -target mips-linux-gnu -mabi=n32 -### %s 2>&1 \ // RUN: | FileCheck -check-prefix=TARGET-N32 %s // TARGET-N32: "-triple" "mips64-unknown-linux-gnu" // TARGET-N32: "-target-cpu" "mips64r2" // TARGET-N32: "-target-abi" "n32" -// TARGET-N32: ld{{.*}}" +// TARGET-N32: ld{{(.exe)?}}" // TARGET-N32: "-m" "elf32btsmipn32" // RUN: %clang -target mips-linux-gnu -mabi=64 -### %s 2>&1 \ // RUN: | FileCheck -check-prefix=TARGET-N64 %s // TARGET-N64: "-triple" "mips64-unknown-linux-gnu" // TARGET-N64: "-target-cpu" "mips64r2" // TARGET-N64: "-target-abi" "n64" -// TARGET-N64: ld{{.*}}" +// TARGET-N64: ld{{(.exe)?}}" // TARGET-N64: "-m" "elf64btsmip"
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits