summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-04-04 09:05:21 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-04-04 09:05:21 +0000
commitc9aa9c00fc99ded37a064d607b71815484e20652 (patch)
treeba00489d38e379e5a3f2c231f19904e8b6a7615f
parent6fb522ef3e9c20e3d66c2caa5c9b830e6b246249 (diff)
Don't actually execute gcc during testing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154005 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Driver/apple-kext-i386.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/Driver/apple-kext-i386.cpp b/test/Driver/apple-kext-i386.cpp
index 6c536074df..a09d6a6c9d 100644
--- a/test/Driver/apple-kext-i386.cpp
+++ b/test/Driver/apple-kext-i386.cpp
@@ -43,5 +43,9 @@
// Check that --serialize-diagnostics does not cause an "argument unused" error.
// RUN: %clang -target i386-apple-darwin10 \
-// RUN: -Werror -Wall -Wno-comment -fapple-kext \
-// RUN: --serialize-diagnostics %t.dia -c %s
+// RUN: -Werror -Wall -Wno-comment -fapple-kext -### \
+// RUN: --serialize-diagnostics %t.dia -c %s 2>&1 | \
+// RUN: FileCheck --check-prefix=CHECK-UNUSED %s
+
+// CHECK-UNUSED-NOT: argument unused
+// CHECK-UNUSED: cc1plus