8177550: (fc) Enable java/nio/channels/FileChannel/{Transfer4GBFile.java,TransferTo6GBFile.java} on Linux and Windows
authorbpb
Fri, 24 Mar 2017 09:16:58 -0700
changeset 44363 bdc8543c97f5
parent 44362 588e52811bf4
child 44364 9cc9dc782213
8177550: (fc) Enable java/nio/channels/FileChannel/{Transfer4GBFile.java,TransferTo6GBFile.java} on Linux and Windows Summary: Re-enabled tests currently suppressed on Linux and Windows as the timeouts have been increased. Reviewed-by: alanb
jdk/test/java/nio/channels/FileChannel/Transfer4GBFile.java
jdk/test/java/nio/channels/FileChannel/TransferTo6GBFile.java
--- a/jdk/test/java/nio/channels/FileChannel/Transfer4GBFile.java	Thu Mar 23 22:57:12 2017 +0000
+++ b/jdk/test/java/nio/channels/FileChannel/Transfer4GBFile.java	Fri Mar 24 09:16:58 2017 -0700
@@ -52,11 +52,6 @@
     // Test transferTo with large file
     @Test
     public void xferTest04() throws Exception { // for bug 4638365
-        // Windows and Linux can't handle the really large file sizes for a
-        // truncate or a positional write required by the test for 4563125
-        String osName = System.getProperty("os.name");
-        if (!(osName.startsWith("SunOS") || osName.contains("OS X")))
-            return;
         File source = File.createTempFile("blah", null);
         source.deleteOnExit();
         long testSize = ((long)Integer.MAX_VALUE) * 2;
--- a/jdk/test/java/nio/channels/FileChannel/TransferTo6GBFile.java	Thu Mar 23 22:57:12 2017 +0000
+++ b/jdk/test/java/nio/channels/FileChannel/TransferTo6GBFile.java	Fri Mar 24 09:16:58 2017 -0700
@@ -50,11 +50,6 @@
     // Test transferTo with file positions larger than 2 and 4GB
     @Test
     public void xferTest08() throws Exception { // for bug 6253145
-        // Creating a sparse 6GB file on Windows takes too long
-        String osName = System.getProperty("os.name");
-        if (osName.startsWith("Windows"))
-            return;
-
         final long G = 1024L * 1024L * 1024L;
 
         // Create 6GB file