From: Rafael Espindola Date: Sat, 22 Sep 2012 22:30:04 +0000 (+0000) Subject: Use FileCheck. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0364fb1d7e5ad0f1e8969f9816efd100f46d823;p=clang Use FileCheck. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164468 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/clang-translation.c b/test/Driver/clang-translation.c index 34c56bc60e..fb60f9a10d 100644 --- a/test/Driver/clang-translation.c +++ b/test/Driver/clang-translation.c @@ -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