You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by km...@apache.org on 2011/03/15 02:18:59 UTC

svn commit: r1081626 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java

Author: kmarsden
Date: Tue Mar 15 01:18:58 2011
New Revision: 1081626

URL: http://svn.apache.org/viewvc?rev=1081626&view=rev
Log:
DERBY-4762 Failure in testPing

Adding some more verbosity to the failure. This does not fix the issue.


Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java?rev=1081626&r1=1081625&r2=1081626&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java Tue Mar 15 01:18:58 2011
@@ -506,8 +506,11 @@ public abstract class BaseTestCase
 	    Process pr = execJavaCmd(cmd);
 	    String output = readProcessOutput(pr);
 	    int exitValue = pr.exitValue();
-
-	    Assert.assertEquals(expectedExitValue, exitValue);
+	    Assert.assertEquals("expectedExitValue:" + expectedExitValue +
+	            " does not match exitValue:" + exitValue +"\n" +
+	            "expected output:" + expectedString + 
+	            " actual output:" + output,
+	            expectedExitValue, exitValue);
 	    if (expectedString != null) {
 	        for (int i = 0; i < expectedString.length; i++) {
 	            assertFalse(output.indexOf(expectedString[i]) < 0);