This is an automated email from the ASF dual-hosted git repository. remm 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 d2ef158 Portable temp path code d2ef158 is described below commit d2ef158945a4aca00dc06900c65c059cbb66c410 Author: remm <r...@apache.org> AuthorDate: Wed Jun 30 17:45:20 2021 +0200 Portable temp path code --- test/org/apache/tomcat/util/net/TestXxxEndpoint.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/org/apache/tomcat/util/net/TestXxxEndpoint.java b/test/org/apache/tomcat/util/net/TestXxxEndpoint.java index 653e751..efc4dd1 100644 --- a/test/org/apache/tomcat/util/net/TestXxxEndpoint.java +++ b/test/org/apache/tomcat/util/net/TestXxxEndpoint.java @@ -213,7 +213,9 @@ public class TestXxxEndpoint extends TomcatBaseTest { c.getProtocolHandlerClassName().contains("NioProtocol") && JreCompat.isJre16Available()); - final String unixDomainSocketPath = "/tmp/testUnixDomainSocket"; + File tempPath = File.createTempFile("tomcat", ".uds"); + final String unixDomainSocketPath = tempPath.getAbsolutePath(); + tempPath.delete(); Assert.assertTrue(c.setProperty("unixDomainSocketPath", unixDomainSocketPath)); tomcat.start(); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org