jdk/test/java/nio/channels/FileChannel/TransferTo6GBFile.java
changeset 44363 bdc8543c97f5
parent 44273 a2e3e08c5468
child 45831 2917da7ac11c
equal deleted inserted replaced
44362:588e52811bf4 44363:bdc8543c97f5
    48     private static PrintStream out = System.out;
    48     private static PrintStream out = System.out;
    49 
    49 
    50     // Test transferTo with file positions larger than 2 and 4GB
    50     // Test transferTo with file positions larger than 2 and 4GB
    51     @Test
    51     @Test
    52     public void xferTest08() throws Exception { // for bug 6253145
    52     public void xferTest08() throws Exception { // for bug 6253145
    53         // Creating a sparse 6GB file on Windows takes too long
       
    54         String osName = System.getProperty("os.name");
       
    55         if (osName.startsWith("Windows"))
       
    56             return;
       
    57 
       
    58         final long G = 1024L * 1024L * 1024L;
    53         final long G = 1024L * 1024L * 1024L;
    59 
    54 
    60         // Create 6GB file
    55         // Create 6GB file
    61 
    56 
    62         File file = File.createTempFile("source", null);
    57         File file = File.createTempFile("source", null);