mirror of
https://github.com/coreutils/coreutils.git
synced 2024-11-26 03:13:42 +08:00
Accommodate the slightly different diagnostic we
get on some systems, due to `unlink (dir)' failing with EACCES rather than EPERM. E.g. for ReiserFS on Linux-2.4.18.
This commit is contained in:
parent
fb10c254d8
commit
7d04e0b63c
10
tests/rm/rm1
10
tests/rm/rm1
@ -34,7 +34,15 @@ cat <<\EOF > exp
|
||||
rm: cannot remove directory `b/a/p': Permission denied
|
||||
EOF
|
||||
|
||||
cmp out exp || fail=1
|
||||
# On some systems, rm doesn't have enough information to
|
||||
# say it's a directory.
|
||||
cat <<\EOF > exp2
|
||||
rm: cannot remove `b/a/p': Permission denied
|
||||
EOF
|
||||
|
||||
cmp out exp > /dev/null 2>&1 || {
|
||||
cmp out exp2 || fail=1
|
||||
}
|
||||
test $fail = 1 && diff out exp 2> /dev/null
|
||||
|
||||
test -d b/a/p || fail=1
|
||||
|
Loading…
Reference in New Issue
Block a user