summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorGreg Bedwell <greg_bedwell@sn.scee.net>2015-02-12 12:41:28 +0000
committerGreg Bedwell <greg_bedwell@sn.scee.net>2015-02-12 12:41:28 +0000
commit421f669215f87567301d101221b8d900a7d2e38a (patch)
treee93fb07cd8aa735389e6df748a780bd07df820b8 /clang/test
parentea50312b840b12a27737cc6ee59c93ec5b3a69c6 (diff)
downloadbcm5719-llvm-421f669215f87567301d101221b8d900a7d2e38a.tar.gz
bcm5719-llvm-421f669215f87567301d101221b8d900a7d2e38a.zip
Fix dependency generation crash test to run clang and clean up after itself.
Previously the test did not have a RUN: prefix for the clang command. In addition it was leaving behind a tmp file with no permissions causing issues when deleting the build directory on Windows. Differential Revision: http://reviews.llvm.org/D7534 llvm-svn: 228919
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Frontend/dependency-generation-crash.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/test/Frontend/dependency-generation-crash.c b/clang/test/Frontend/dependency-generation-crash.c
index 181bb71f1b0..63a6a7732e9 100644
--- a/clang/test/Frontend/dependency-generation-crash.c
+++ b/clang/test/Frontend/dependency-generation-crash.c
@@ -1,4 +1,8 @@
// RUN: touch %t
// RUN: chmod 0 %t
-// %clang -E -dependency-file bla -MT %t -MP -o %t -x c /dev/null
+// RUN: not %clang_cc1 -E -dependency-file bla -MT %t -MP -o %t -x c /dev/null 2>&1 | FileCheck %s
+// RUN: rm -f %t
+
+// CHECK: error: unable to open output file
+
// rdar://9286457
OpenPOWER on IntegriCloud