* tests/chgrp/basic.sh: Test $host_os, not $host_triplet.
* tests/chown/separator.sh: Likewise.
* tests/rm/r-root.sh: Likewise.
* tests/tail/pipe-f.sh: Likewise.
* tests/tail/tail-c.sh: Likewise.
* tests/tee/tee.sh: Likewise.
* tests/touch/dangling-symlink.sh: Likewise.
chgrp '' f
test "$(ls -C -c -t f g)" = 'f g' || \
{
- case $host_triplet in
- *openbsd*) echo ignoring known OpenBSD-specific chgrp failure 1>&2 ;;
- *darwin7.9.*|*darwin8.*)
+ case $host_os in
+ openbsd*) echo ignoring known OpenBSD-specific chgrp failure 1>&2 ;;
+ darwin7.9.*|darwin8.*)
echo ignoring known MacOS X-specific chgrp failure 1>&2 ;;
*) echo $host_triplet: no-change chgrp failed to update ctime 1>&2;
fail=1 ;;
# FreeBSD 6.x's getgrnam fails to look up a group name containing
# a space. On such a system, skip this test if the group name contains
# a byte not in the portable filename character set.
-case $host_triplet in
- *-freebsd6.*)
+case $host_os in
+ freebsd6.*)
case $id_gn in
*[^a-zA-Z0-9._-]*) skip_ "invalid group name: $id_gn";;
esac;;
USE_GDB=1
if test $USE_GDB = 1; then
- case $host_triplet in
- *darwin*) skip_ 'avoiding due to potentially non functioning gdb' ;;
+ case $host_os in
+ darwin*) skip_ 'avoiding due to potentially non functioning gdb' ;;
*) ;;
esac
# Also check tail exits if SIGPIPE is being ignored.
# Note 'trap - SIGPIPE' is ineffective if the initiating shell
# has ignored SIGPIPE, but that's not the normal case.
-case $host_triplet in
- *aix*) echo 'avoiding due to no way to detect closed outputs on AIX' ;;
+case $host_os in
+ aix*) echo 'avoiding due to no way to detect closed outputs on AIX' ;;
*)
for disposition in '' '-'; do
(trap "$disposition" PIPE;
# Solaris 11 allows negative seek but then gives EINVAL on read
1) grep 'Invalid argument' err || fail=1;;
*)
- case $host_triplet in
- *linux-gnu*)
+ case $host_os in
+ linux-gnu*)
case "$(uname -r)" in
[12].*) ;; # Older Linux versions timeout
*) fail=1 ;;
test $(wc -l < err) = 1 || { cat err; fail=1; }
fi
-case $host_triplet in
- *aix*) echo 'avoiding due to no way to detect closed outputs on AIX' ;;
+case $host_os in
+ aix*) echo 'avoiding due to no way to detect closed outputs on AIX' ;;
*)
# Test iopoll-powered early exit for closed pipes
tee_exited() { sleep $1; test -f tee.exited; }
rm -f touch-target t-symlink
if test $fail = 1; then
- case $host_triplet in
- *linux-gnu*)
+ case $host_os in
+ linux-gnu*)
case "$(uname -r)" in
2.3.9[0-9]*)
skip_ \