]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: accommodate a different errno value on HPUX-10.20
authorJim Meyering <meyering@redhat.com>
Tue, 8 Apr 2008 06:01:00 +0000 (08:01 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 8 Apr 2008 06:01:00 +0000 (08:01 +0200)
* tests/mkdir/selinux: Also handle "Unknown system error".
Reported by Peter Fales.

tests/mkdir/selinux

index f8aeace26ca3c8c4bb9924f7802dd0ff542740d9..1fa44aee80762ebe055448681734beec53d76849 100755 (executable)
@@ -37,9 +37,11 @@ for cmd_w_arg in 'mkdir dir' 'mknod b p' 'mkfifo f'; do
   set $cmd_w_arg; cmd=$1
   echo "$cmd: $msg" > exp || fail=1
 
-  # Some systems fail with ENOTSUP, or EINVAL, or even ENOENT.
+  # Some systems fail with ENOTSUP, EINVAL, ENOENT, or even
+  # "Unknown system error".
   sed                                  \
     -e 's/ Invalid argument$//'                \
+    -e 's/ Unknown system error$//'    \
     -e 's/ Operation not supported$//' \
     -e 's/ No such file or directory$//' out > k || fail=1
   mv k out || fail=1