tests: accommodate difference in an AIX 5.3 diagnostic
authorPeter O'Gorman <bug-coreutils@mlists.thewrittenword.com>
Thu, 26 Jun 2008 18:57:11 +0000 (20:57 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 26 Jun 2008 19:08:22 +0000 (21:08 +0200)
* tests/mkdir/selinux: Handle different strerror (ENOTSUP) spelling.

tests/mkdir/selinux

index 291d62d..4a01a43 100755 (executable)
@@ -43,12 +43,14 @@ for cmd_w_arg in 'mkdir dir' 'mknod b p' 'mkfifo f'; do
 
   # Some systems fail with ENOTSUP, EINVAL, ENOENT, or even
   # "Unknown system error", or "Function not implemented".
+  # For AIX 5.3: "Unsupported attribute value"
   sed                                  \
     -e 's/ Not supported$//'           \
     -e 's/ Invalid argument$//'                \
     -e 's/ Unknown system error$//'    \
     -e 's/ Operation not supported$//' \
     -e 's/ Function not implemented$//'        \
+    -e 's/ Unsupported attribute value$//'     \
     -e 's/ No such file or directory$//' out > k || fail=1
   mv k out || fail=1
   compare out exp || fail=1