< prev index next >

test/jdk/java/nio/channels/FileChannel/LoopingTruncate.java

Print this page
rev 51731 : imported patch 8210732

*** 23,45 **** /** * @test * @bug 8137121 8137230 * @summary (fc) Infinite loop FileChannel.truncate ! * @library /lib/testlibrary ! * @build jdk.testlibrary.Utils * @run main/othervm/timeout=300 LoopingTruncate */ import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.nio.channels.ClosedByInterruptException; import java.nio.file.Files; import java.nio.file.Path; import static java.nio.file.StandardOpenOption.*; import java.util.concurrent.TimeUnit; ! import static jdk.testlibrary.Utils.adjustTimeout; public class LoopingTruncate { // (int)FATEFUL_SIZE == -3 == IOStatus.INTERRUPTED static long FATEFUL_SIZE = 0x1FFFFFFFDL; --- 23,45 ---- /** * @test * @bug 8137121 8137230 * @summary (fc) Infinite loop FileChannel.truncate ! * @library /test/lib ! * @build jdk.test.lib.Utils * @run main/othervm/timeout=300 LoopingTruncate */ import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.nio.channels.ClosedByInterruptException; import java.nio.file.Files; import java.nio.file.Path; import static java.nio.file.StandardOpenOption.*; import java.util.concurrent.TimeUnit; ! import static jdk.test.lib.Utils.adjustTimeout; public class LoopingTruncate { // (int)FATEFUL_SIZE == -3 == IOStatus.INTERRUPTED static long FATEFUL_SIZE = 0x1FFFFFFFDL;
< prev index next >