mirror of
https://github.com/coreutils/coreutils.git
synced 2026-10-28 09:44:34 +08:00
tests: mv: check broken symlink cross-filesystem move
Identified here: <https://github.com/uutils/coreutils/issues/8586> * tests/mv/mv-special-2.sh: Add the check.
This commit is contained in:
1 parent
92a93c445b
commit
cd08aa2056
1 file changed
+6
@@ -59,6 +59,12 @@ mv --verbose blah xdev &&
|
||||
returns_ 1 test -L blah &&
|
||||
test -L xdev/blah || fail=1
|
||||
|
||||
# Test moving a broken symlink to another file system
|
||||
ln -nsf nonexistent broken_symlink || framework_failure_
|
||||
mv --verbose broken_symlink xdev &&
|
||||
returns_ 1 test -L broken_symlink &&
|
||||
test -L xdev/broken_symlink || 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 &&
|
||||
|
||||
Reference in new issue
Block a user