]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Also accept SunOS4's `Not owner' diagnostic.
authorJim Meyering <jim@meyering.net>
Sat, 15 Dec 2001 09:28:50 +0000 (09:28 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 15 Dec 2001 09:28:50 +0000 (09:28 +0000)
tests/touch/fail-diag

index f1fd037b69abfb67a9f5bd0eeaab86155cc40346..6e2b49a16ed63cc6090baea323c36618387efd84 100755 (executable)
@@ -38,7 +38,15 @@ touch: setting times of `/': Permission denied
 touch: creating `/no/such-dir': No such file or directory
 EOF
 
-cmp out exp || fail=1
+cmp out exp || {
+  # On SunOS4, EPERM is `Not owner'
+  cat > exp2 <<\EOF
+touch: setting times of `/': Not owner
+touch: creating `/no/such-dir': No such file or directory
+EOF
+  cmp out exp2 || fail=1
+}
+
 test $fail = 1 && diff out exp 2> /dev/null
 
 (exit $fail); exit