You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2021/06/30 15:47:05 UTC

[tomcat] branch 10.0.x updated: Portable temp path code

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

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


The following commit(s) were added to refs/heads/10.0.x by this push:
     new 69dd781  Portable temp path code
69dd781 is described below

commit 69dd78106ee53d7bc55922910991c6efb664c4ce
Author: remm <re...@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org