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

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


The following commit(s) were added to refs/heads/10.1.x by this push:
     new 217fbf6570 CI Windows issue
217fbf6570 is described below

commit 217fbf657092ec2af04db76fab1c5b5626cb91e4
Author: remm <r...@apache.org>
AuthorDate: Tue Jun 25 15:09:59 2024 +0200

    CI Windows issue
---
 test/org/apache/catalina/realm/TestJAASRealm.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/test/org/apache/catalina/realm/TestJAASRealm.java 
b/test/org/apache/catalina/realm/TestJAASRealm.java
index f77239ae49..b309baffd9 100644
--- a/test/org/apache/catalina/realm/TestJAASRealm.java
+++ b/test/org/apache/catalina/realm/TestJAASRealm.java
@@ -86,7 +86,11 @@ public class TestJAASRealm extends TomcatBaseTest {
         // Write login config to the temp path
         File loginConfFile = new File(getTemporaryDirectory(), 
"memoryLoginConfig.conf");
         try (PrintWriter writer = new PrintWriter(loginConfFile)) {
-            writer.write(CONFIG_MEMORY.replace("tomcat-users-lm.xml", 
tomcatUsersXml.getAbsolutePath()));
+            String path = tomcatUsersXml.getAbsolutePath();
+            if (File.separatorChar == '\\') {
+                path = path.replace("\\", "\\\\");
+            }
+            writer.write(CONFIG_MEMORY.replace("tomcat-users-lm.xml", path));
         }
         addDeleteOnTearDown(loginConfFile);
 


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

Reply via email to