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:26:33 UTC
[tomcat] 04/05: 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 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit e1a7fbc09a72bee3b0f28cd61dd80343ce163635
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