]> granicus.if.org Git - clang/commitdiff
Try to unbreak tests after r296166
authorNico Weber <nicolasweber@gmx.de>
Fri, 24 Feb 2017 21:01:43 +0000 (21:01 +0000)
committerNico Weber <nicolasweber@gmx.de>
Fri, 24 Feb 2017 21:01:43 +0000 (21:01 +0000)
Looks like %T isn't per-test but per-test-directory, and
the rm was deleting temp files written by other tests in
test/Format.  Limit the rm's scope a bit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@296171 91177308-0d34-0410-b5e6-96231b3b80d8

test/Format/inplace.cpp

index 1a00eb44b8e29ea8b473d76561866b771a8969f4..cc218f31187af2143cede3411cde685b73a7fe14 100644 (file)
@@ -1,6 +1,6 @@
 // Regression test to check that clang-format does not leave behind temporary
 // files on Windows when doing in-place formatting.
-// RUN: rm %T/*
+// RUN: rm %T/inplace*
 // RUN: cp %s %T/inplace.cpp
 // RUN: clang-format -style=LLVM -i %T/inplace.cpp
 // RUN: ls %T > %T/files.txt