summaryrefslogtreecommitdiff
path: root/tests/rm/inaccessible
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-05-28 09:32:54 +0000
committerJim Meyering <jim@meyering.net>2006-05-28 09:32:54 +0000
commit8542aa662209dab454d45ddb320d100ef1a0205d (patch)
tree87c15439db1ee730e23353598c6346f75963d95d /tests/rm/inaccessible
parent59985f42e6af1a5879378e77afe5df5aadefa48c (diff)
downloadcoreutils-8542aa662209dab454d45ddb320d100ef1a0205d.tar.xz
AIX 4.3.3 gives a different diagnostic.
Recognize it, too. Reported by Ralf Wildenhues, in http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00192.html
Diffstat (limited to 'tests/rm/inaccessible')
-rwxr-xr-xtests/rm/inaccessible6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/rm/inaccessible b/tests/rm/inaccessible
index 843e44e3a..32c10f4e9 100755
--- a/tests/rm/inaccessible
+++ b/tests/rm/inaccessible
@@ -37,6 +37,12 @@ cat <<\EOF > exp || fail=1
rm: cannot remove `rel': Permission denied
EOF
+# AIX 4.3.3 fails with a different diagnostic.
+# Transform their diagnostic
+# ...: The file access permissions do not allow the specified action.
+# to the expected one:
+sed 's/: The file access permissions.*/: Permission denied/'<out>o1;mv o1 out
+
cmp out exp || fail=1
test $fail = 1 && diff out exp 2> /dev/null