8151064: com/sun/jdi/RedefineAddPrivateMethod.sh fails intermittently
Reviewed-by: dsamersoff, sspitsyn
--- a/jdk/test/com/sun/jdi/RedefineAddPrivateMethod.sh Thu Mar 03 12:34:55 2016 +0100
+++ b/jdk/test/com/sun/jdi/RedefineAddPrivateMethod.sh Thu Mar 03 18:05:48 2016 +0100
@@ -35,7 +35,8 @@
cat <<EOF > $1.java.1
public class $1 {
static public void main(String[] args) {
- // @1 breakpoint @2 breakpoint
+ System.out.println("@1 breakpoint");
+ System.out.println("@2 breakpoint");
}
// @1 uncomment private static void test() {}
@@ -50,7 +51,8 @@
runToBkpt @1
redefineClass @1
setBkpts @2
- cmd allowExit cont
+ runToBkpt @2
+ cmd exitJdb
}