summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-07-09 17:48:08 +0000
committerJim Meyering <jim@meyering.net>2006-07-09 17:48:08 +0000
commit159f93015862c8ef435c101f4d76c1ab03e692c0 (patch)
tree090ef6912ce5779a826219799236b9b7d1ce7404 /tests
parent914c8674a57921e2f8c53f1ef4751d81b5152088 (diff)
downloadcoreutils-159f93015862c8ef435c101f4d76c1ab03e692c0.tar.xz
Adjust so failing with ENOTEMPTY is ok, too.
That happens with Linux/tmpfs.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/mv/dir2dir5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/mv/dir2dir b/tests/mv/dir2dir
index 3f865bc1d..189b4f991 100755
--- a/tests/mv/dir2dir
+++ b/tests/mv/dir2dir
@@ -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