1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-10 17:31:56 +02:00

tests: mv: check moving named sockets is supported

* tests/mv/mv-special-2.sh: Use python to create a named socket,
and ensure it's copied across file systems.
This commit is contained in:
Pádraig Brady
2025-12-16 11:33:38 +00:00
parent 45071c85b5
commit 9a1bd362d2

View File

@@ -59,4 +59,11 @@ mv --verbose blah xdev &&
returns_ 1 test -L blah &&
test -L xdev/blah || fail=1
if python -c "import socket as s; s.socket(s.AF_UNIX).bind('test.sock')" &&
test -S 'test.sock'; then
mv --verbose test.sock xdev &&
returns_ 1 test -S test.sock &&
test -S xdev/test.sock || fail=1
fi
Exit $fail