summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPeter O'Gorman <bug-coreutils@mlists.thewrittenword.com>2008-06-26 20:57:11 +0200
committerJim Meyering <meyering@redhat.com>2008-06-26 21:08:22 +0200
commit58b2e1204a000fdcbdac42e427c5556dddf40aea (patch)
treece777a208f5b94e52bd7d213ecb438cb49144471 /tests
parent27311c9e8544b6b11e7e86dfa1b8597ff1d9eb75 (diff)
downloadcoreutils-58b2e1204a000fdcbdac42e427c5556dddf40aea.tar.xz
tests: accommodate difference in an AIX 5.3 diagnostic
* tests/mkdir/selinux: Handle different strerror (ENOTSUP) spelling.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/mkdir/selinux2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/mkdir/selinux b/tests/mkdir/selinux
index 291d62da1..4a01a4330 100755
--- a/tests/mkdir/selinux
+++ b/tests/mkdir/selinux
@@ -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