Skip to content

Apache Lucene open-source search software

TestWindowsMmap now creates the index $(system.tempDir)/testLuceneMmap.

Doron Cohen40093328ca95
diff --git a/src/test/org/apache/lucene/store/TestWindowsMMap.java b/src/test/org/apache/lucene/store/TestWindowsMMap.java
index cb6ac9c9a15..68e8ac7f8b8 100644
--- a/src/test/org/apache/lucene/store/TestWindowsMMap.java
+++ b/src/test/org/apache/lucene/store/TestWindowsMMap.java
@@ -43,7 +43,8 @@ public class TestWindowsMMap extends TestCase {
return fb.toString();
}
- private final static String storePathname = "testLuceneMmap";
+ private final static String storePathname =
+ new File(System.getProperty("tempDir"),"testLuceneMmap").getAbsolutePath();
public void testMmapIndex() throws Exception {
FSDirectory storeDirectory;