mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
tests: accept EEXIST from rm -d
* tests/rm/d-2.sh: EEXIST is a valid error on some systems. Reported by Michael Felt on AIX 6.1
This commit is contained in:
1 parent
dd68ddc654
commit
fac673a577
1 file changed
+5
-1
+5
-1
@@ -24,10 +24,14 @@ mkdir d || framework_failure_
|
||||
> d/a || framework_failure_
|
||||
|
||||
rm -d d 2> out && fail=1
|
||||
|
||||
# Accept any of these: EEXIST, ENOTEMPTY
|
||||
sed 's/: File exists/: Directory not empty/' out > out2
|
||||
|
||||
printf "%s\n" \
|
||||
"rm: cannot remove 'd': Directory not empty" \
|
||||
> exp || framework_failure_
|
||||
|
||||
compare exp out || fail=1
|
||||
compare exp out2 || fail=1
|
||||
|
||||
Exit $fail
|
||||
Reference in new issue
Block a user