changeset 10854:27f83b6f9672

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
author farvidsson
date Mon, 29 Sep 2014 10:01:17 +0200
parents a8978c1bafa0
children e2fd52e1d86e
files test/com/sun/jdi/RunToExit.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/com/sun/jdi/RunToExit.java	Fri Sep 26 01:40:33 2014 -0700
+++ b/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.");
         }
     }
 }