]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
AIX 4.3.3 gives a different diagnostic.
authorJim Meyering <jim@meyering.net>
Sun, 28 May 2006 09:32:54 +0000 (09:32 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 28 May 2006 09:32:54 +0000 (09:32 +0000)
Recognize it, too.  Reported by Ralf Wildenhues, in
http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00192.html

tests/rm/inaccessible

index 843e44e3a8980eec24f7fa01495bd1591d6fda59..32c10f4e9e228f72b227efcb250bf64ddfb24b1d 100755 (executable)
@@ -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