diff --git a/CHANGES.txt b/CHANGES.txt index d395a9ffaa3..21a3aa986df 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -313,6 +313,7 @@ Optimizations Test Cases 1. Added TestTermScorer.java (Grant Ingersoll) 2. Added TestWindowsMMap.java (Benson Margulies via Mike McCandless) + 3. LUCENE-744 Append the user.name property onto the temporary directory that is created so it doesn't interfere with other users. (Grant Ingersoll) Documentation diff --git a/src/test/org/apache/lucene/index/TestFieldsReader.java b/src/test/org/apache/lucene/index/TestFieldsReader.java index 64f2f9e0ad0..7bba89bda5c 100644 --- a/src/test/org/apache/lucene/index/TestFieldsReader.java +++ b/src/test/org/apache/lucene/index/TestFieldsReader.java @@ -164,7 +164,8 @@ public class TestFieldsReader extends TestCase { */ public void testLazyPerformance() throws Exception { String tmpIODir = System.getProperty("java.io.tmpdir"); - String path = tmpIODir + File.separator + "lazyDir"; + String userName = System.getProperty("user.name"); + String path = tmpIODir + File.separator + "lazyDir" + userName; File file = new File(path); FSDirectory tmpDir = FSDirectory.getDirectory(file, true); assertTrue(tmpDir != null);