projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
914c867
)
Adjust so failing with ENOTEMPTY is ok, too.
author
Jim Meyering
<jim@meyering.net>
Sun, 9 Jul 2006 17:48:08 +0000
(17:48 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 9 Jul 2006 17:48:08 +0000
(17:48 +0000)
That happens with Linux/tmpfs.
tests/mv/dir2dir
patch
|
blob
|
history
diff --git
a/tests/mv/dir2dir
b/tests/mv/dir2dir
index
3f865bc
..
189b4f9
100755
(executable)
--- 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