equal
deleted
inserted
replaced
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); |