]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
test: Fix remote_helper test error for long $PWD
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 12 Mar 2026 07:31:19 +0000 (08:31 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 12 Mar 2026 07:44:12 +0000 (08:44 +0100)
Use relative Unix socket paths in tests to avoid overflowing the Unix
socket name length limit when $PWD is long.

Fixes #1697.

test/suites/remote_helper.bash

index b77124c3538afb21adc4b52f71aca3a496a730e6..f6e0f110eeb133884b6bf24b183089ed39832b77 100644 (file)
@@ -93,7 +93,7 @@ SUITE_remote_helper() {
     # -------------------------------------------------------------------------
     TEST "Direct crsh: connection"
 
-    local endpoint="$PWD/test.sock"
+    local endpoint="test.sock"
 
     if $HOST_OS_WINDOWS; then
         endpoint="ccache-test-$$"
@@ -140,7 +140,7 @@ SUITE_remote_helper() {
     # -------------------------------------------------------------------------
     TEST "Connection failure handling"
 
-    local endpoint="$PWD/nonexistent.sock"
+    local endpoint="nonexistent.sock"
 
     if $HOST_OS_WINDOWS; then
         endpoint="ccache-nonexistent-$$"