Skip when unix socket path is too long
Eventually the path directly under "/tmp" is complained by `rm_r` in spec/mspec/lib/mspec/helpers/fs.rb.
This commit is contained in:
parent
39bbbd767d
commit
e956052fa9
Notes:
git
2023-04-21 15:08:41 +00:00
@ -37,7 +37,9 @@ module SocketSpecs
|
|||||||
# Check for too long unix socket path (max 104 bytes on macOS)
|
# Check for too long unix socket path (max 104 bytes on macOS)
|
||||||
# Note that Linux accepts not null-terminated paths but the man page advises against it.
|
# Note that Linux accepts not null-terminated paths but the man page advises against it.
|
||||||
if path.bytesize > 104
|
if path.bytesize > 104
|
||||||
path = "/tmp/unix_server_spec.socket"
|
# rm_r in spec/mspec/lib/mspec/helpers/fs.rb fails against
|
||||||
|
# "/tmp/unix_server_spec.socket"
|
||||||
|
skip "too long unix socket path: #{path}"
|
||||||
end
|
end
|
||||||
rm_socket(path)
|
rm_socket(path)
|
||||||
path
|
path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user