From: Pádraig Brady Date: Tue, 16 Dec 2025 11:33:38 +0000 (+0000) Subject: tests: mv: check moving named sockets is supported X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=HEAD;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/tests/mv/mv-special-2.sh b/tests/mv/mv-special-2.sh index fc259c7603..f77e323234 100755 --- a/tests/mv/mv-special-2.sh +++ b/tests/mv/mv-special-2.sh @@ -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