Skip to content

Apache Lucene open-source search software

Added reporting of the test's temporary location in case of a failure.

Dawid Weissf8c0e119bad5
diff --git a/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
index fb3e212afc4..91bf8f3e10b 100644
--- a/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
+++ b/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
@@ -2360,6 +2360,13 @@ public abstract class LuceneTestCase extends Assert {
throw e;
}
}
+ } else {
+ synchronized (cleanupQueue) {
+ if (tempDirBase != null) {
+ System.err.println("NOTE: leaving temporary files on disk at: " +
+ tempDirBase.getAbsolutePath());
+ }
+ }
}
}
}