fakechroot: Skip tests for shorter path lengths than before
The existing Unix socket test already skipped the tests when the environment had a longer pathname than 75 characters. The limit overall for Unix sockets appears to be 108 characters, so the test is assumed to use fewer than 33 for its own path.
However, in docker the path length is 67 and the check still fails, indicating the test actually uses at least 42 characters of its own. For now, we set this limit to 66, although it may be revised further down, depending on testing in CI.
--- a/test/t/socket-af_unix.t 2019-03-22 21:02:42.000000000 +0000
+++ b/test/t/socket-af_unix.t 2024-09-30 12:25:55.162725033 +0000
@@ -28,7 +28,7 @@
if [ $chroot = "chroot" ] && ! is_root; then
skip $(( $tap_plan / 2 )) "not root"
- elif [ "`pwd -P | wc -c`" -gt 75 ]; then
+ elif [ "`pwd -P | wc -c`" -gt 66 ]; then
skip $(( $tap_plan / 2 )) "current working directory is too long"
else
fakechroot: Skip tests for shorter path lengths than before
The existing Unix socket test already skipped the tests when the environment had a longer pathname than 75 characters. The limit overall for Unix sockets appears to be 108 characters, so the test is assumed to use fewer than 33 for its own path.
However, in docker the path length is 67 and the check still fails, indicating the test actually uses at least 42 characters of its own. For now, we set this limit to 66, although it may be revised further down, depending on testing in CI.