[PATCH] Improve robustness of dependency-generation-crash.c test.

Phabricator reviews at reviews.llvm.org
Mon Mar 2 12:46:24 PST 2015


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D7620

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,7 +1,4 @@
-// RUN: touch %t
-// RUN: chmod 0 %t
-// 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
+// RUN: not %clang_cc1 -E -dependency-file bla -MT %t/doesnotexist/bla.o -MP -o $t/doesnotexist/bla.o -x c /dev/null 2>&1 | FileCheck %s
 
 // CHECK: error: unable to open output file

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7620.21032.patch
Type: text/x-patch
Size: 604 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150302/902ba749/attachment.bin>


More information about the cfe-commits mailing list