< prev index next >
test/jdk/java/lang/Runtime/shutdown/ShutdownInterruptedMain.java
Print this page
rev 51638 : [mq]: 8210112
*** 22,41 ****
*/
/*
* @test
* @bug 8154017
! * @library /lib/testlibrary
! * @build jdk.testlibrary.*
* @summary Shutdown hooks are racing against shutdown sequence,
if System.exit()-calling thread is interrupted
* @run main ShutdownInterruptedMain exec
*/
! import jdk.testlibrary.OutputAnalyzer;
! import static jdk.testlibrary.ProcessTools.createJavaProcessBuilder;
! import static jdk.testlibrary.ProcessTools.executeProcess;
public class ShutdownInterruptedMain {
public static void main(String[] args) throws Exception {
if (args.length > 0) {
--- 22,40 ----
*/
/*
* @test
* @bug 8154017
! * @library /test/lib
* @summary Shutdown hooks are racing against shutdown sequence,
if System.exit()-calling thread is interrupted
* @run main ShutdownInterruptedMain exec
*/
! import jdk.test.lib.process.OutputAnalyzer;
! import static jdk.test.lib.process.ProcessTools.createJavaProcessBuilder;
! import static jdk.test.lib.process.ProcessTools.executeProcess;
public class ShutdownInterruptedMain {
public static void main(String[] args) throws Exception {
if (args.length > 0) {
< prev index next >