SOLR-5914: Need to use ensureClosed boolean everywhere in SolrTestCaseJ4.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/solr5914@1582826 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2014-03-28 16:55:24 +00:00
parent 8c1810a26f
commit 64ad96afb1
1 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@ public abstract class SolrTestCaseJ4 extends LuceneTestCase {
boolean ensureClosed = !(LEAVE_TEST_TMP_DIR || LEAVE_TEST_TMP_DIR_ANNOTATION);
rootTmpDir = TestUtil.createTempDir("solrtest-" + cname, null, ensureClosed);
initCoreDataDir = TestUtil.createTempDir("solrtest-" + cname, rootTmpDir);
initCoreDataDir = TestUtil.createTempDir("solrtest-" + cname, rootTmpDir, ensureClosed);
System.err.println("Creating dataDir: " + initCoreDataDir.getAbsolutePath());
@ -513,7 +513,7 @@ public abstract class SolrTestCaseJ4 extends LuceneTestCase {
}
public static File createTempDir(String tag) {
return TestUtil.createTempDir(getClassName() + (tag == null ? "" : "-" + tag), rootTmpDir);
return TestUtil.createTempDir(getClassName() + (tag == null ? "" : "-" + tag), rootTmpDir, !(LEAVE_TEST_TMP_DIR || LEAVE_TEST_TMP_DIR_ANNOTATION));
}
public static void resetExceptionIgnores() {