8059105: Add better failure reporting to com/sun/jdi/RunToExit.java test
authorfarvidsson
Mon, 29 Sep 2014 10:01:17 +0200
changeset 26963 a2a52f380463
parent 26871 7a5c3ea38cb6
child 26964 7804b1202dc7
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
jdk/test/com/sun/jdi/RunToExit.java
--- 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.");
         }
     }
 }