This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new f3dccd6c43 Fix test failure on Windows
f3dccd6c43 is described below
commit f3dccd6c43599168a9c9ef63f0801bb763453474
Author: Administrator <[email protected]>
AuthorDate: Fri Jun 19 17:02:30 2026 +0100
Fix test failure on Windows
---
test/org/apache/catalina/util/TestServerInfo.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/org/apache/catalina/util/TestServerInfo.java
b/test/org/apache/catalina/util/TestServerInfo.java
index 3c35308869..fda6edbeb9 100644
--- a/test/org/apache/catalina/util/TestServerInfo.java
+++ b/test/org/apache/catalina/util/TestServerInfo.java
@@ -289,7 +289,7 @@ public class TestServerInfo {
Assume.assumeTrue("APR not available",
AprLifecycleListener.isAprAvailable());
// Verify version info format (should contain version numbers)
- String[] lines = output.split("\n");
+ String[] lines = output.split(System.lineSeparator());
boolean foundAprVersion = false;
boolean foundTcnVersion = false;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]