diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/util/TestFilesystemResourceLoader.java b/lucene/analysis/common/src/test/org/apache/lucene/analysis/util/TestFilesystemResourceLoader.java index 96248a2e8db..01887ef9239 100644 --- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/util/TestFilesystemResourceLoader.java +++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/util/TestFilesystemResourceLoader.java @@ -60,7 +60,7 @@ public class TestFilesystemResourceLoader extends LuceneTestCase { } public void testBaseDir() throws Exception { - final File base = _TestUtil.getTempDir("fsResourceLoaderBase"); + final File base = _TestUtil.getTempDir("fsResourceLoaderBase").getAbsoluteFile(); try { base.mkdirs(); Writer os = new OutputStreamWriter(new FileOutputStream(new File(base, "template.txt")), IOUtils.CHARSET_UTF_8);