* tests/mv/mv-special-2.sh: Use python to create a named socket,
and ensure it's copied across file systems.
---
 tests/mv/mv-special-2.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/mv/mv-special-2.sh b/tests/mv/mv-special-2.sh
index fc259c760..f77e32323 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
-- 
2.52.0


Reply via email to