diff --git a/jdk/test/com/sun/jdi/BreakpointWithFullGC.sh b/jdk/test/com/sun/jdi/BreakpointWithFullGC.sh index f7bcb89e715..81baff826e4 100644 --- a/jdk/test/com/sun/jdi/BreakpointWithFullGC.sh +++ b/jdk/test/com/sun/jdi/BreakpointWithFullGC.sh @@ -121,7 +121,8 @@ jdbFailIfNotPresent 'System\..*bottom of loop' jdbFailIfNotPresent 'System\..*end of test' # make sure we had at least one full GC -debuggeeFailIfNotPresent 'Full GC' +# Prior to JDK9-B95, the pattern was 'Full GC' +debuggeeMatchRegexp '^.*?\bPause Full\b\(System.gc\(\)\)\b.*?$' # check for error message due to thread ID change debuggeeFailIfPresent \