From 1eb3366eb653a947c3630f559e90fbfcf8d7e2ed Mon Sep 17 00:00:00 2001 From: Dawid Weiss Date: Sat, 5 Apr 2014 11:56:58 +0000 Subject: [PATCH] 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 --- .../lucene/util/junitcompat/TestLeaveFilesIfTestFails.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/test/org/apache/lucene/util/junitcompat/TestLeaveFilesIfTestFails.java b/lucene/core/src/test/org/apache/lucene/util/junitcompat/TestLeaveFilesIfTestFails.java index 51b0a172c81..6ffca05f1e7 100644 --- a/lucene/core/src/test/org/apache/lucene/util/junitcompat/TestLeaveFilesIfTestFails.java +++ b/lucene/core/src/test/org/apache/lucene/util/junitcompat/TestLeaveFilesIfTestFails.java @@ -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();