[PATCH] D17216: Make test/Driver/output-file-cleanup.c hermetic.

Justin Lebar via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 12 14:13:05 PST 2016


jlebar created this revision.
jlebar added a reviewer: rafael.
jlebar added a subscriber: cfe-commits.

It checks that certain files do and exist, so make sure that they don't
exist at the beginning of the test.

This hid a failure in r260448; to see the failure, you had to run the test with
a clean-ish objdir.

http://reviews.llvm.org/D17216

Files:
  test/Driver/output-file-cleanup.c

Index: test/Driver/output-file-cleanup.c
===================================================================
--- test/Driver/output-file-cleanup.c
+++ test/Driver/output-file-cleanup.c
@@ -1,3 +1,5 @@
+// RUN: rm -f "%t.d" "%t1.s" "%t2.s" "%t3.s" "%t4.s" "%t5.s"
+//
 // RUN: touch %t.s
 // RUN: not %clang -S -DCRASH -o %t.s -MMD -MF %t.d %s
 // RUN: test ! -f %t.s


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17216.47857.patch
Type: text/x-patch
Size: 367 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160212/d655020d/attachment-0001.bin>


More information about the cfe-commits mailing list