mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
Adjust so failing with ENOTEMPTY is ok, too.
That happens with Linux/tmpfs.
This commit is contained in:
1 parent
914c8674a5
commit
159f930158
1 file changed
+4
-1
+4
-1
@@ -35,8 +35,11 @@ fail=0
|
||||
# diagnostic about moving one directory to a subdirectory of itself.
|
||||
mv b/t a 2> out && fail=1
|
||||
|
||||
# Accept either EEXIST or ENOTEMPTY.
|
||||
sed 's/: File exists/: Directory not empty/'<out>o1;mv o1 out
|
||||
|
||||
cat <<\EOF > exp || fail=1
|
||||
mv: cannot move `b/t' to `a/t': File exists
|
||||
mv: cannot move `b/t' to `a/t': Directory not empty
|
||||
EOF
|
||||
|
||||
cmp out exp || fail=1
|
||||
|
||||
Reference in new issue
Block a user