print a warning in this test if it cant clean up (rather than silently leaving trash)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@964856 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2010-07-16 16:47:23 +00:00
parent 4c23e64c08
commit 90ac856ea2
1 changed files with 3 additions and 1 deletions

View File

@ -125,7 +125,9 @@ public abstract class BaseDistributedSearchTestCase extends SolrTestCaseJ4 {
@Override
public void tearDown() throws Exception {
destroyServers();
AbstractSolrTestCase.recurseDelete(testDir);
if (!AbstractSolrTestCase.recurseDelete(testDir)) {
System.err.println("!!!! WARNING: best effort to remove " + testDir.getAbsolutePath() + " FAILED !!!!!");
}
super.tearDown();
}