8059105: Add better failure reporting to com/sun/jdi/RunToExit.java test
Summary: Add better failure reporting to com/sun/jdi/RunToExit.java test
Reviewed-by: sla, egahlin, jbachorik
Contributed-by: fredrik.arvidsson@oracle.com
--- a/jdk/test/com/sun/jdi/RunToExit.java Fri Sep 26 01:40:33 2014 -0700
+++ b/jdk/test/com/sun/jdi/RunToExit.java Mon Sep 29 10:01:17 2014 +0200
@@ -184,7 +184,8 @@
if (exitCode == 0 && error_seen == 0) {
System.out.println("Test passed - server debuggee cleanly terminated");
} else {
- throw new RuntimeException("Test failed - server debuggee generated an error when it terminated");
+ throw new RuntimeException("Test failed - server debuggee generated an error when it terminated, " +
+ "exit code was " + exitCode + ", " + error_seen + " error(s) seen in debugee output.");
}
}
}