db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r1081626 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java
Date Tue, 15 Mar 2011 01:18:59 GMT
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);



Mime
View raw message