diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-09-22 22:30:04 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-09-22 22:30:04 +0000 |
commit | d0364fb1d7e5ad0f1e8969f9816efd100f46d823 (patch) | |
tree | 2b63dba836a3440c01039f1238e04ad30d0994f9 | |
parent | 0bd9838751384181ff387f2fb346896792b89617 (diff) |
Use FileCheck.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164468 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Driver/clang-translation.c | 12 |
1 files changed, 8 insertions, 4 deletions
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 |