changeset 13491:4c19b446250c

8145408: com/sun/jdi/BreakpointWithFullGC.sh Required output "Full GC" not found Summary: Modified the test so it correctly parses the new debug output Reviewed-by: jbachorik
author akulyakh
date Wed, 16 Dec 2015 19:59:23 +0300
parents 20cf50b4e385
children edd314e5becd
files test/com/sun/jdi/BreakpointWithFullGC.sh
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/com/sun/jdi/BreakpointWithFullGC.sh	Mon Dec 14 15:32:03 2015 +0100
+++ b/test/com/sun/jdi/BreakpointWithFullGC.sh	Wed Dec 16 19:59:23 2015 +0300
@@ -121,7 +121,8 @@
 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 \