From: Justin Lebar Date: Wed, 24 Feb 2016 21:49:26 +0000 (+0000) Subject: Make test/Driver/output-file-cleanup.c hermetic. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd6ccac862719953e2b965028b7d338330abae32;p=clang Make test/Driver/output-file-cleanup.c hermetic. Summary: 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. Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D17216 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261773 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/output-file-cleanup.c b/test/Driver/output-file-cleanup.c index 065df8f5b8..e907bd3607 100644 --- a/test/Driver/output-file-cleanup.c +++ b/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