[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tests/chgrp/basic test failure on Solaris 8 with setgid directory
From: |
Paul Eggert |
Subject: |
tests/chgrp/basic test failure on Solaris 8 with setgid directory |
Date: |
Mon, 18 Sep 2006 09:13:09 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
Here are the symptoms:
make[3]: Entering directory `/r/share1/src/coreutils-6.2/tests/chgrp'
PASS: no-x
PASS: posix-H
FAIL: basic
...
I tracked it down to what appears to be a typo in tests/chgrp/basic,
triggered when the build directory is setgid and the builder has
multiple groups. I installed this:
2006-09-18 Paul Eggert <address@hidden>
* tests/chgrp/basic: Fix bug in test case exposed by building on
Solaris 8 in a setgid directory. The test case incorrectly
assumed that 'symlink' would be in group $g1.
--- tests/chgrp/basic 17 Sep 2006 20:58:34 -0000 1.24
+++ tests/chgrp/basic 18 Sep 2006 16:10:23 -0000
@@ -73,11 +73,10 @@ chgrp $g2 d ||fail=1; test `stat --p=
rm -f f
touch f
ln -s f symlink
-chgrp $g1 f; test `stat --printf=%g f` = $g1 || fail=1
+chgrp $g1 f
+test `stat --printf=%g f` = $g1 || fail=1
# This should not change the group of f.
-test `stat --printf=%g f` = $g1 || fail=1
-test `stat --printf=%g symlink` = $g1 || fail=1
chgrp -h $g2 symlink
test `stat --printf=%g f` = $g1 || fail=1
test `stat --printf=%g symlink` = $g2 || fail=1
- tests/chgrp/basic test failure on Solaris 8 with setgid directory,
Paul Eggert <=