]> granicus.if.org Git - clang/commitdiff
Make test/Driver/output-file-cleanup.c hermetic.
authorJustin Lebar <jlebar@google.com>
Wed, 24 Feb 2016 21:49:26 +0000 (21:49 +0000)
committerJustin Lebar <jlebar@google.com>
Wed, 24 Feb 2016 21:49:26 +0000 (21:49 +0000)
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

test/Driver/output-file-cleanup.c

index 065df8f5b87bed66ab5fda49f1d0fbb01f13e95e..e907bd36077915a3b1a75ebcb4fcd7c8d7396071 100644 (file)
@@ -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