6648858: InvokeHangTest.java fails due to "failure: Debuggee appears to be hung" when running with -Xcomp
authorctornqvi
Thu, 15 Sep 2016 16:56:11 -0400
changeset 41199 cca6aec2bd7b
parent 41198 f7477110f0d7
child 41200 064c4150b0ee
6648858: InvokeHangTest.java fails due to "failure: Debuggee appears to be hung" when running with -Xcomp Reviewed-by: zgu, gtriantafill, iignatyev
jdk/test/com/sun/jdi/InvokeHangTest.java
--- a/jdk/test/com/sun/jdi/InvokeHangTest.java	Mon Mar 21 11:24:09 2016 +0100
+++ b/jdk/test/com/sun/jdi/InvokeHangTest.java	Thu Sep 15 16:56:11 2016 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -29,6 +29,7 @@
  *  @author jjh
  *
  *  @modules jdk.jdi
+ *  @library /test/lib
  *  @run build TestScaffold VMConnection TargetListener TargetAdapter
  *  @run compile -g InvokeHangTest.java
  *  @run driver InvokeHangTest
@@ -133,7 +134,7 @@
     BreakpointRequest request2;
     static volatile int bkpts = 0;
     Thread timerThread;
-    static int waitTime = 20000;
+    static long waitTime = jdk.test.lib.Utils.adjustTimeout(20000);
 
     InvokeHangTest (String args[]) {
         super(args);