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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user