Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8244537: JDI tests fail due to "ERROR: Exception : nsk.share.jdi.JDIT…
…estRuntimeException: JDITestRuntimeException : ** event IS NOT a breakpoint **"

Reviewed-by: sspitsyn, amenkov
  • Loading branch information
lmesnik committed Aug 5, 2020
1 parent d94a7c4 commit 5991dbb3792f0d18a7ee9d7528a366537f25fee0
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 5 deletions.
@@ -398,6 +398,7 @@ private void testRun()
log3("ERROR: IllegalArgumentException");
}

vm.suspend();
try {
log2("......eventRequest1.enable();");
eventRequest1.enable();
@@ -419,6 +420,7 @@ private void testRun()
} catch ( InvalidRequestStateException e ) {
log2(" InvalidRequestStateException");
}
vm.resume();

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}
@@ -411,6 +411,7 @@ private void testRun()
throw new JDITestRuntimeException("** default case 2 **");
}

vm.suspend();
log2("......eventRequest1.setEnabled(true);");
eventRequest1.setEnabled(true);

@@ -423,6 +424,7 @@ private void testRun()
log3("ERROR: EventRequest is still enabled");
}
eventRequest1.setEnabled(false);
vm.resume();

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}
@@ -363,6 +363,7 @@ private void testRun()
throw new JDITestRuntimeException("** default case 2 **");
}

vm.suspend();
log2("......eventRequest1.enable();");
eventRequest1.enable();
log2(" checking up on eventRequest1");
@@ -371,6 +372,7 @@ private void testRun()
log3("ERROR: EventRequest is not enabled");
}
eventRequest1.disable();
vm.resume();

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}
@@ -364,6 +364,7 @@ private void testRun()
throw new JDITestRuntimeException("** default case 2 **");
}

vm.suspend();
log2("......eventRequest1.setEnabled(true);");
eventRequest1.setEnabled(true);
log2(" checking up on eventRequest1");
@@ -379,7 +380,7 @@ private void testRun()
testExitCode = FAILED;
log3("ERROR: EventRequest is enabled");
}

vm.resume();

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}
@@ -362,6 +362,7 @@ private void testRun()
throw new JDITestRuntimeException("** default case 2 **");
}

vm.suspend();
log2("......eventRequest1.setEnable(true);");
eventRequest1.setEnabled(true);
log2(" checking up on eventRequest1");
@@ -377,7 +378,7 @@ private void testRun()
testExitCode = FAILED;
log3("ERROR: EventRequest is enabled");
}

vm.resume();

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}
@@ -368,6 +368,7 @@ private void testRun()
throw new JDITestRuntimeException("** default case 2 **");
}

vm.suspend();
if (eventRequest1 instanceof StepRequest) {
try {
log2("......eventRequest1.setEnabled(true); IllegalThreadStateException is expected");
@@ -405,6 +406,7 @@ private void testRun()
} catch ( InvalidRequestStateException e ) {
log2(" InvalidRequestStateException");
}
vm.resume();

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}
@@ -282,7 +282,7 @@ private void testRun()

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variable part


vm.suspend();
switch (i) {

case 0:
@@ -292,7 +292,6 @@ private void testRun()
log2("......setting up StepRequest");
eventRequest1 = eventRManager.createStepRequest
(thread1, StepRequest.STEP_MIN, StepRequest.STEP_INTO);

try {
log2("......eventRequest1.setEnabled(true); IllegalThreadStateException is expected");
eventRequest1.setEnabled(true);
@@ -359,6 +358,7 @@ private void testRun()
default:
throw new JDITestRuntimeException("** default case 2 **");
}
vm.resume();

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}
@@ -401,6 +401,7 @@ private void testRun()
log3("ERROR: suspendPolicy() != EventRequest.SUSPEND_NONE");
}

vm.suspend();
log2("......eventRequest1.setEnabled(true);");
eventRequest1.setEnabled(true);
try {
@@ -421,6 +422,7 @@ private void testRun()
} catch ( InvalidRequestStateException e ) {
log2(" InvalidRequestStateException");
}
vm.resume();

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}
@@ -161,7 +161,7 @@ protected void breakpointForCommunication() throws JDITestRuntimeException {
return;
}

throw new JDITestRuntimeException("** event IS NOT a breakpoint **");
throw new JDITestRuntimeException("** event '" + event + "' IS NOT a breakpoint **");
}

}

0 comments on commit 5991dbb

Please sign in to comment.