[PATCH] Fix dependency-generation-crash test to actually execute clang and to clean up after itself

Greg Bedwell greg_bedwell at sn.scee.net
Thu Feb 12 04:43:26 PST 2015


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D7534

Files:
  cfe/trunk/test/Frontend/dependency-generation-crash.c

Index: cfe/trunk/test/Frontend/dependency-generation-crash.c
===================================================================
--- cfe/trunk/test/Frontend/dependency-generation-crash.c
+++ cfe/trunk/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

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7534.19818.patch
Type: text/x-patch
Size: 552 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150212/39e28e2d/attachment.bin>


More information about the cfe-commits mailing list