< prev index next >
test/jdk/java/nio/channels/Selector/Wakeup.java
Print this page
rev 51731 : imported patch 8210732
*** 22,32 ****
*/
/* @test
* @bug 6405995
* @summary Unit test for selector wakeup and interruption
! * @library .. /lib/testlibrary/
*/
import java.io.*;
import java.net.*;
import java.nio.*;
--- 22,32 ----
*/
/* @test
* @bug 6405995
* @summary Unit test for selector wakeup and interruption
! * @library .. /test/lib
*/
import java.io.*;
import java.net.*;
import java.nio.*;
*** 42,52 ****
x.printStackTrace();
}
}
static class Sleeper extends TestThread {
! private static final long TIMEOUT = jdk.testlibrary.Utils.adjustTimeout(20_000);
// barrier is used to synchronize sleeper thread and checking
// thread which is the main thread: when go() get to the end,
// then start checking the sleeper's status.
private static CyclicBarrier barrier = new CyclicBarrier(2);
--- 42,52 ----
x.printStackTrace();
}
}
static class Sleeper extends TestThread {
! private static final long TIMEOUT = jdk.test.lib.Utils.adjustTimeout(20_000);
// barrier is used to synchronize sleeper thread and checking
// thread which is the main thread: when go() get to the end,
// then start checking the sleeper's status.
private static CyclicBarrier barrier = new CyclicBarrier(2);
< prev index next >