mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-14 18:03:44 +00:00
8218754: JDK-8068225 regression in JDIBreakpointTest
Reviewed-by: cjplummer, sspitsyn
This commit is contained in:
parent
328fae7880
commit
5d0ff15a58
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2019, 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
|
||||
@ -45,6 +45,7 @@ import com.sun.jdi.StackFrame;
|
||||
import com.sun.jdi.ThreadReference;
|
||||
import com.sun.jdi.Value;
|
||||
import com.sun.jdi.VirtualMachine;
|
||||
import com.sun.jdi.VMDisconnectedException;
|
||||
import com.sun.jdi.event.BreakpointEvent;
|
||||
import com.sun.jdi.event.ClassPrepareEvent;
|
||||
import com.sun.jdi.event.Event;
|
||||
@ -358,8 +359,12 @@ public abstract class JDIBreakpointTest extends MlvmTest {
|
||||
}
|
||||
}.go();
|
||||
|
||||
if (!debuggee.terminated())
|
||||
debuggee.endDebugee();
|
||||
if (!debuggee.terminated()) {
|
||||
try {
|
||||
debuggee.dispose();
|
||||
} catch (VMDisconnectedException ignore) {
|
||||
}
|
||||
}
|
||||
|
||||
debuggee.waitFor();
|
||||
return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user