print exactly which files cant be removed (e.g. spellchecker/xyz.cfs) when cleaning up test temp data

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@965222 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2010-07-18 12:55:50 +00:00
parent 658c5f01bd
commit bd1a237061
2 changed files with 2 additions and 0 deletions

View File

@ -483,6 +483,7 @@ public class SolrTestCaseJ4 extends LuceneTestCaseJ4 {
if (f.isDirectory()) {
for (File sub : f.listFiles()) {
if (!recurseDelete(sub)) {
System.err.println("!!!! WARNING: best effort to remove " + sub.getAbsolutePath() + " FAILED !!!!!");
return false;
}
}

View File

@ -402,6 +402,7 @@ public abstract class AbstractSolrTestCase extends LuceneTestCase {
if (f.isDirectory()) {
for (File sub : f.listFiles()) {
if (!recurseDelete(sub)) {
System.err.println("!!!! WARNING: best effort to remove " + sub.getAbsolutePath() + " FAILED !!!!!");
return false;
}
}