Don't run this test if temporary folders are left behind.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1585070 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dawid Weiss 2014-04-05 11:56:58 +00:00
parent 10f96205a3
commit 1eb3366eb6
1 changed files with 1 additions and 1 deletions

View File

@ -69,9 +69,9 @@ public class TestLeaveFilesIfTestFails extends WithNestedTests {
@Test
public void testWindowsUnremovableFile() throws IOException {
RandomizedTest.assumeTrue("Requires Windows.", Constants.WINDOWS);
RandomizedTest.assumeFalse(LuceneTestCase.LEAVE_TEMPORARY);
Result r = JUnitCore.runClasses(Nested2.class);
super.prevSysErr.println(r.getFailures().get(0).getMessage());
Assert.assertEquals(1, r.getFailureCount());
Nested2.openFile.close();