LUCENE-5154: fix test to use getTempDir instead of CWD

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1508717 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2013-07-31 03:56:01 +00:00
parent a3bcddbb1c
commit 598e546bf4
1 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,7 @@ import java.nio.charset.CodingErrorAction;
import org.apache.lucene.facet.FacetTestCase;
import org.apache.lucene.util.IOUtils;
import org.apache.lucene.util._TestUtil;
import org.junit.Test;
/*
@ -83,7 +84,8 @@ public class TestCharBlockArray extends FacetTestCase {
assertEqualsInternal("GrowingCharArray<->StringBuilder mismatch.", builder, array);
File f = new File("GrowingCharArrayTest.tmp");
File tempDir = _TestUtil.getTempDir("growingchararray");
File f = new File(tempDir, "GrowingCharArrayTest.tmp");
BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(f));
array.flush(out);
out.flush();