[cfe-commits] r164468 - /cfe/trunk/test/Driver/clang-translation.c
Rafael Espindola
rafael.espindola at gmail.com
Sat Sep 22 15:30:04 PDT 2012
Author: rafael
Date: Sat Sep 22 17:30:04 2012
New Revision: 164468
URL: http://llvm.org/viewvc/llvm-project?rev=164468&view=rev
Log:
Use FileCheck.
Modified:
cfe/trunk/test/Driver/clang-translation.c
Modified: cfe/trunk/test/Driver/clang-translation.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/clang-translation.c?rev=164468&r1=164467&r2=164468&view=diff
==============================================================================
--- cfe/trunk/test/Driver/clang-translation.c (original)
+++ cfe/trunk/test/Driver/clang-translation.c Sat Sep 22 17:30:04 2012
@@ -11,10 +11,14 @@
// I386: "hidden"
// I386: "-o"
// I386: clang-translation
-// RUN: %clang -target i386-apple-darwin9 -### -S %s -o %t.s 2> %t.log
-// RUN: grep '"-target-cpu" "yonah"' %t.log
-// RUN: %clang -target x86_64-apple-darwin9 -### -S %s -o %t.s 2> %t.log
-// RUN: grep '"-target-cpu" "core2"' %t.log
+// RUN: %clang -target i386-apple-darwin9 -### -S %s -o %t.s 2>&1 | \
+// RUN: FileCheck -check-prefix=YONAH %s
+// YONAH: "-target-cpu"
+// YONAH: "yonah"
+// RUN: %clang -target x86_64-apple-darwin9 -### -S %s -o %t.s 2>&1 | \
+// RUN: FileCheck -check-prefix=CORE2 %s
+// CORE2: "-target-cpu"
+// CORE2: "core2"
// RUN: %clang -target x86_64-apple-darwin10 -### -S %s 2> %t.log \
// RUN: -arch armv7
More information about the cfe-commits
mailing list