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 2020/04/03 08:23:17 UTC

[tomcat] 04/04: Failed test on Windows. Expand logging to aid debugging of failures.

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit f8da18d362b8a773afd557fdda0fe50a3748c90c
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Apr 2 21:37:48 2020 +0100

    Failed test on Windows. Expand logging to aid debugging of failures.
---
 test/org/apache/tomcat/util/net/TestSsl.java | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/test/org/apache/tomcat/util/net/TestSsl.java b/test/org/apache/tomcat/util/net/TestSsl.java
index 1736b49..ae23179 100644
--- a/test/org/apache/tomcat/util/net/TestSsl.java
+++ b/test/org/apache/tomcat/util/net/TestSsl.java
@@ -128,14 +128,17 @@ public class TestSsl extends TomcatBaseTest {
                             }
                         }
 
-                        for (byte c : bytes) {
+                        for (int i = 0; i < bytes.length; i++) {
                             int read = is.read();
-                            if (c != read) {
+                            if (bytes[i] != read) {
+                                System.err.print("Byte in position [" + i + "] had value [" + read +
+                                        "] rather than " + Byte.toString(bytes[i]));
                                 errorCount.incrementAndGet();
                                 break;
                             }
                         }
                     } catch (Exception e) {
+                        e.printStackTrace();
                         errorCount.incrementAndGet();
                     } finally {
                         latch.countDown();


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org