This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new f06f99c Portable temp path code
f06f99c is described below
commit f06f99c90f4b8dcfa8c350cc97f781bc399f84ef
Author: remm <[email protected]>
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 b4b0a86..c094480 100644
--- a/test/org/apache/tomcat/util/net/TestXxxEndpoint.java
+++ b/test/org/apache/tomcat/util/net/TestXxxEndpoint.java
@@ -204,7 +204,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: [email protected]
For additional commands, e-mail: [email protected]