--- preserve-gid_test_new2 2008-01-26 18:33:55 +0100 +++ preserve-gid_test_new3 2008-01-26 19:43:42 +0100 @@ -2,7 +2,7 @@ % cd coreutils-6.10 % patch -p1 < ~/foo2.patch patching file tests/cp/preserve-gid -% patch -p1 < ~/foo3.patch +% patch -p1 < ~/foo3a.patch patching file tests/cp/preserve-gid % ./configure --disable-acl >/dev/null % make -j3 >/dev/null @@ -200,18 +200,118 @@ ++ stat -c '%u %g' b + s='1000 0' + test 'x1000 0' '!=' 'x1000 1000' -+ test 'setuidgid -g 1000,1001 1000 cp:1000 0' = 'cp:1000 0' -+ echo './preserve-gid: setuidgid -g 1000,1001 1000 cp a0 b: 1000 1000 != 1000 0' -./preserve-gid: setuidgid -g 1000,1001 1000 cp a0 b: 1000 1000 != 1000 0 ++ case "$@:$s" in ++ t1 b0 1000 1000 cp ++ f=b0 ++ shift ++ u=1000 ++ shift ++ g=1000 ++ shift ++ t0 b0 1000 1000 setuidgid -g 1000,1001 1000 cp ++ f=b0 ++ shift ++ u=1000 ++ shift ++ g=1000 ++ shift ++ rm -f b ++ setuidgid -g 1000,1001 1000 cp b0 b +++ stat -c '%u %g' b ++ s='1000 0' ++ test 'x1000 0' '!=' 'x1000 1000' ++ case "$@:$s" in ++ t1 b1 1000 1000 cp ++ f=b1 ++ shift ++ u=1000 ++ shift ++ g=1000 ++ shift ++ t0 b1 1000 1000 setuidgid -g 1000,1001 1000 cp ++ f=b1 ++ shift ++ u=1000 ++ shift ++ g=1000 ++ shift ++ rm -f b ++ setuidgid -g 1000,1001 1000 cp b1 b +++ stat -c '%u %g' b ++ s='1000 0' ++ test 'x1000 0' '!=' 'x1000 1000' ++ case "$@:$s" in ++ t1 c0 1000 1000 cp ++ f=c0 ++ shift ++ u=1000 ++ shift ++ g=1000 ++ shift ++ t0 c0 1000 1000 setuidgid -g 1000,1001 1000 cp ++ f=c0 ++ shift ++ u=1000 ++ shift ++ g=1000 ++ shift ++ rm -f b ++ setuidgid -g 1000,1001 1000 cp c0 b +++ stat -c '%u %g' b ++ s='1000 0' ++ test 'x1000 0' '!=' 'x1000 1000' ++ case "$@:$s" in ++ t1 c1 1000 1000 cp ++ f=c1 ++ shift ++ u=1000 ++ shift ++ g=1000 ++ shift ++ t0 c1 1000 1000 setuidgid -g 1000,1001 1000 cp ++ f=c1 ++ shift ++ u=1000 ++ shift ++ g=1000 ++ shift ++ rm -f b ++ setuidgid -g 1000,1001 1000 cp c1 b +++ stat -c '%u %g' b ++ s='1000 0' ++ test 'x1000 0' '!=' 'x1000 1000' ++ case "$@:$s" in ++ t1 a0 1000 1000 cp -p ++ f=a0 ++ shift ++ u=1000 ++ shift ++ g=1000 ++ shift ++ t0 a0 1000 1000 setuidgid -g 1000,1001 1000 cp -p ++ f=a0 ++ shift ++ u=1000 ++ shift ++ g=1000 ++ shift ++ rm -f b ++ setuidgid -g 1000,1001 1000 cp -p a0 b +++ stat -c '%u %g' b ++ s='1000 0' ++ test 'x1000 0' '!=' 'x1000 1000' ++ case "$@:$s" in ++ echo './preserve-gid: setuidgid -g 1000,1001 1000 cp -p a0 b: 1000 1000 != 1000 0' +./preserve-gid: setuidgid -g 1000,1001 1000 cp -p a0 b: 1000 1000 != 1000 0 + exit 1 + exit 1 + st=1 + cleanup_ + : -+ d=/Users/pipping/coreutils-6.10/tests/cp/cu-preserve-gid.cZqpAQhXfq ++ d=/Users/pipping/coreutils-6.10/tests/cp/cu-preserve-gid.YA0HWjK6FN + cd /Users/pipping/coreutils-6.10/tests/cp -+ chmod -R u+rwx /Users/pipping/coreutils-6.10/tests/cp/cu-preserve-gid.cZqpAQhXfq -+ rm -rf /Users/pipping/coreutils-6.10/tests/cp/cu-preserve-gid.cZqpAQhXfq ++ chmod -R u+rwx /Users/pipping/coreutils-6.10/tests/cp/cu-preserve-gid.YA0HWjK6FN ++ rm -rf /Users/pipping/coreutils-6.10/tests/cp/cu-preserve-gid.YA0HWjK6FN + exit 1 make[2]: *** [test-suite.log] Error 1 make[1]: *** [check-TESTS] Error 2