equal
deleted
inserted
replaced
50 private static PrintStream out = System.out; |
50 private static PrintStream out = System.out; |
51 |
51 |
52 // Test transferTo with large file |
52 // Test transferTo with large file |
53 @Test |
53 @Test |
54 public void xferTest04() throws Exception { // for bug 4638365 |
54 public void xferTest04() throws Exception { // for bug 4638365 |
55 // Windows and Linux can't handle the really large file sizes for a |
|
56 // truncate or a positional write required by the test for 4563125 |
|
57 String osName = System.getProperty("os.name"); |
|
58 if (!(osName.startsWith("SunOS") || osName.contains("OS X"))) |
|
59 return; |
|
60 File source = File.createTempFile("blah", null); |
55 File source = File.createTempFile("blah", null); |
61 source.deleteOnExit(); |
56 source.deleteOnExit(); |
62 long testSize = ((long)Integer.MAX_VALUE) * 2; |
57 long testSize = ((long)Integer.MAX_VALUE) * 2; |
63 initTestFile(source, 10); |
58 initTestFile(source, 10); |
64 RandomAccessFile raf = new RandomAccessFile(source, "rw"); |
59 RandomAccessFile raf = new RandomAccessFile(source, "rw"); |