mirror of https://github.com/apache/lucene.git
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:
parent
8c1810a26f
commit
64ad96afb1
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue