Reenable test on Windows which was disabled previously but should now work after a workaround was put in place via bug 58480.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1708613 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a00240f212
commit
392591e222
@ -29,7 +29,6 @@ import java.io.ByteArrayOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileFilter;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
@ -76,7 +75,6 @@ import org.apache.poi.util.CodePageUtil;
|
||||
import org.apache.poi.util.IOUtils;
|
||||
import org.apache.poi.util.LittleEndian;
|
||||
import org.apache.poi.util.TempFile;
|
||||
import org.junit.Assume;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
@ -827,7 +825,6 @@ public class TestWrite
|
||||
*/
|
||||
@Test
|
||||
public void inPlaceNPOIFSWrite() throws Exception {
|
||||
try {
|
||||
NPOIFSFileSystem fs = null;
|
||||
DirectoryEntry root = null;
|
||||
DocumentNode sinfDoc = null;
|
||||
@ -1001,16 +998,6 @@ public class TestWrite
|
||||
// Tidy up
|
||||
fs.close();
|
||||
copy.delete();
|
||||
} catch (FileNotFoundException e) {
|
||||
// On Windows this might always fail, as the nio classes
|
||||
// leave memory mapped buffers active, even when the corresponding channel is closed
|
||||
// The buffers are closed on garbage-collection (but System.gc() can't be forced)
|
||||
// or via sun.misc.Cleaner, but this is regarded unsafe
|
||||
// http://stackoverflow.com/questions/2972986
|
||||
// http://bugs.java.com/view_bug.do?bug_id=4724038
|
||||
Assume.assumeFalse(System.getProperty("os.name").toLowerCase(Locale.ROOT).contains("win"));
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user