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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to