You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2017/09/13 16:06:07 UTC
svn commit: r1808251 -
/tomcat/trunk/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java
Author: markt
Date: Wed Sep 13 16:06:07 2017
New Revision: 1808251
URL: http://svn.apache.org/viewvc?rev=1808251&view=rev
Log:
More useful error logging if test fails.
Modified:
tomcat/trunk/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java
Modified: tomcat/trunk/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java?rev=1808251&r1=1808250&r2=1808251&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java (original)
+++ tomcat/trunk/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java Wed Sep 13 16:06:07 2017
@@ -131,7 +131,7 @@ public class TestSocketServerAnyLocalAdd
int rep = in.read();
sock.close();
if (rep != 'Z') {
- throw new Exception("Read wrong data");
+ throw new Exception("Read wrong data [" + rep + "]");
}
sock = new java.net.Socket();
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org