summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-03-09 20:09:46 +0100
committerJim Meyering <jim@meyering.net>2007-03-09 20:09:46 +0100
commitfe3fbf2f543e4b3a532c2b0bfd2fe18c9048caae (patch)
treec9921a8ce11c7e42d8ca698c1cb49828ff5b98d8
parentd9079b12e3b7899361a77a3e1d5d2261e612b862 (diff)
downloadcoreutils-fe3fbf2f543e4b3a532c2b0bfd2fe18c9048caae.tar.xz
* tests/chgrp/basic: Also avoid test failures on Darwin 8.8.x (MacOS X 10.4).
-rw-r--r--ChangeLog1
-rwxr-xr-xtests/chgrp/basic9
2 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 78f032c53..51aa04018 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
In the chgrp-no-change-ctime test, add darwin7.9.0 as another
known-failing system.
When failing on some other system, print $host_triplet, too.
+ Also avoid test failures on Darwin 8.8.x (MacOS X 10.4).
Reported by Peter Fales.
2007-03-08 Jim Meyering <jim@meyering.net>
diff --git a/tests/chgrp/basic b/tests/chgrp/basic
index ccc69f036..475f12f8c 100755
--- a/tests/chgrp/basic
+++ b/tests/chgrp/basic
@@ -113,16 +113,17 @@ sleep 1
chgrp $g1 f
# The following no-change chgrp command is supposed to update f's ctime,
-# but on OpenBSD and Darwin 7.9.0, it appears to be a no-op for some file
-# system types (at least NFS) so g's ctime is more recent.
-# This is not a big deal;
+# but on OpenBSD and Darwin 7.9.0 and 8.8.0 (aka MacOS X 10.3.9 and 10.4),
+# it appears to be a no-op for some file system types (at least NFS) so g's
+# ctime is more recent. This is not a big deal;
# this test works fine when the files are on a local file system (/tmp).
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.0) echo ignoring known MacOS X-specific chgrp failure 1>&2 ;;
+ *darwin7.9.*|*darwin8.8.*)
+ echo ignoring known MacOS X-specific chgrp failure 1>&2 ;;
*) echo $host_triplet: no-change chgrp failed to update ctime 1>&2;
fail=1 ;;
esac