--- preserve-gid_test_old 2008-01-26 16:48:39 +0100 +++ preserve-gid_test_new 2008-01-26 16:48:43 +0100 @@ -1,5 +1,7 @@ % tar xf coreutils-6.10.tar % cd coreutils-6.10 +% patch -p1 < ~/foo2.patch +patching file tests/cp/preserve-gid % ./configure --disable-acl >/dev/null % make -j3 >/dev/null % sudo env VERBOSE=yes NON_ROOT_USERNAME=$USER make check -C tests/cp TESTS=preserve-gid @@ -41,7 +43,7 @@ + test -z 1000 + test -z 1000 + test -z 1001 -+ chown +1000 . ++ chown +1000:+0 . + create a0 0 0 + echo a0 + chown +0:+0 a0 @@ -67,19 +69,146 @@ + rm -f b + cp a0 b ++ stat -c '%u %g' b -+ s='0 20' -+ test 'x0 20' '!=' 'x0 0' -+ echo './preserve-gid: cp a0 b: 0 0 != 0 20' -./preserve-gid: cp a0 b: 0 0 != 0 20 ++ s='0 0' ++ test 'x0 0' '!=' 'x0 0' ++ t0 b0 0 0 cp ++ f=b0 ++ shift ++ u=0 ++ shift ++ g=0 ++ shift ++ rm -f b ++ cp b0 b +++ stat -c '%u %g' b ++ s='0 0' ++ test 'x0 0' '!=' 'x0 0' ++ t0 b1 0 0 cp ++ f=b1 ++ shift ++ u=0 ++ shift ++ g=0 ++ shift ++ rm -f b ++ cp b1 b +++ stat -c '%u %g' b ++ s='0 0' ++ test 'x0 0' '!=' 'x0 0' ++ t0 c0 0 0 cp ++ f=c0 ++ shift ++ u=0 ++ shift ++ g=0 ++ shift ++ rm -f b ++ cp c0 b +++ stat -c '%u %g' b ++ s='0 0' ++ test 'x0 0' '!=' 'x0 0' ++ t0 c1 0 0 cp ++ f=c1 ++ shift ++ u=0 ++ shift ++ g=0 ++ shift ++ rm -f b ++ cp c1 b +++ stat -c '%u %g' b ++ s='0 0' ++ test 'x0 0' '!=' 'x0 0' ++ t0 a0 0 0 cp -p ++ f=a0 ++ shift ++ u=0 ++ shift ++ g=0 ++ shift ++ rm -f b ++ cp -p a0 b +++ stat -c '%u %g' b ++ s='0 0' ++ test 'x0 0' '!=' 'x0 0' ++ t0 b0 1000 1000 cp -p ++ f=b0 ++ shift ++ u=1000 ++ shift ++ g=1000 ++ shift ++ rm -f b ++ cp -p b0 b +++ stat -c '%u %g' b ++ s='1000 1000' ++ test 'x1000 1000' '!=' 'x1000 1000' ++ t0 b1 1000 1001 cp -p ++ f=b1 ++ shift ++ u=1000 ++ shift ++ g=1001 ++ shift ++ rm -f b ++ cp -p b1 b +++ stat -c '%u %g' b ++ s='1000 1001' ++ test 'x1000 1001' '!=' 'x1000 1001' ++ t0 c0 0 1000 cp -p ++ f=c0 ++ shift ++ u=0 ++ shift ++ g=1000 ++ shift ++ rm -f b ++ cp -p c0 b +++ stat -c '%u %g' b ++ s='0 1000' ++ test 'x0 1000' '!=' 'x0 1000' ++ t0 c1 0 1001 cp -p ++ f=c1 ++ shift ++ u=0 ++ shift ++ g=1001 ++ shift ++ rm -f b ++ cp -p c1 b +++ stat -c '%u %g' b ++ s='0 1001' ++ test 'x0 1001' '!=' 'x0 1001' ++ t1 a0 1000 1000 cp ++ f=a0 ++ shift ++ u=1000 ++ shift ++ g=1000 ++ shift ++ t0 a0 1000 1000 setuidgid -g 1000,1001 1000 cp ++ f=a0 ++ shift ++ u=1000 ++ shift ++ g=1000 ++ shift ++ rm -f b ++ setuidgid -g 1000,1001 1000 cp a0 b +++ stat -c '%u %g' b ++ s='1000 0' ++ test 'x1000 0' '!=' 'x1000 1000' ++ 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 + exit 1 + exit 1 + st=1 + cleanup_ + : -+ d=/Users/pipping/coreutils-6.10/tests/cp/cu-preserve-gid.vjND9M5Zmn ++ d=/Users/pipping/coreutils-6.10/tests/cp/cu-preserve-gid.Z97dkWMGjs + cd /Users/pipping/coreutils-6.10/tests/cp -+ chmod -R u+rwx /Users/pipping/coreutils-6.10/tests/cp/cu-preserve-gid.vjND9M5Zmn -+ rm -rf /Users/pipping/coreutils-6.10/tests/cp/cu-preserve-gid.vjND9M5Zmn ++ chmod -R u+rwx /Users/pipping/coreutils-6.10/tests/cp/cu-preserve-gid.Z97dkWMGjs ++ rm -rf /Users/pipping/coreutils-6.10/tests/cp/cu-preserve-gid.Z97dkWMGjs + exit 1 make[2]: *** [test-suite.log] Error 1 make[1]: *** [check-TESTS] Error 2