]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: accept EEXIST from rm -d
authorPádraig Brady <P@draigBrady.com>
Thu, 22 Nov 2012 10:36:31 +0000 (10:36 +0000)
committerPádraig Brady <P@draigBrady.com>
Sat, 24 Nov 2012 15:29:56 +0000 (15:29 +0000)
* tests/rm/d-2.sh: EEXIST is a valid error on some systems.
Reported by Michael Felt on AIX 6.1

tests/rm/d-2.sh

index b62c2ee71a20d098d17aa6bdf865ac52a2b92810..1a1a5601b868324df0ed9a382addb038852ee801 100755 (executable)
@@ -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