On Wed, 2009-08-12 at 23:06 +0200, Jim Meyering wrote: > C de-Avillez wrote: > > Yet another one, on check-root. I am starting to wonder if this may be a > > problem with my setup, since nobody has reported errors on tail. > > > > FAIL: tail-2/append-only (exit: 1) > > ================================== > > Thanks for the reports. > How did you run those tests? > When I do it like this (per README), they all pass. > > sudo env PATH="$PATH" NON_ROOT_USERNAME=$USER make -k check-root
Yes, I did run them this way. I have just re-run them under git master (so that I would have the current status, without Pádraig's fixes). It failed the same. The following is the command line I used: hg...@xango2:/usr/src/buildd/coreutils $ sudo env PATH="$PATH" NON_ROOT_USERNAME=$USER make check-root And here's the log: FAIL: tail-2/append-only (exit: 1) ================================== + tail --version tail (GNU coreutils) 7.4.114-e3232 Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Paul Rubin, David MacKenzie, Ian Lance Taylor, and Jim Meyering. + . ./test-lib.sh ++ unset function_test ++ eval 'function_test() { return 11; }; function_test' +++ function_test +++ return 11 ++ test 11 '!=' 11 +++ pwd ++ test_dir_=/usr/src/buildd/coreutils/tests +++ this_test_ +++ echo ././tail-2/append-only +++ sed 's,.*/,,' ++ this_test=append-only +++ /usr/src/buildd/coreutils/src/mktemp -d --tmp=/usr/src/buildd/coreutils/tests cu-append-only.XXXXXXXXXX ++ t_=/usr/src/buildd/coreutils/tests/cu-append-only.qJhExA8KWr ++ trap remove_tmp_ 0 ++ trap 'Exit $?' 1 2 13 15 ++ cd /usr/src/buildd/coreutils/tests/cu-append-only.qJhExA8KWr ++ diff --version ++ grep GNU + require_root_ + uid_is_privileged_ ++ id -u + my_uid=0 + case $my_uid in + NON_ROOT_USERNAME=hggdh ++ id -g hggdh + NON_ROOT_GROUP=1000 + chattr_a_works=1 + touch f + chattr +a f + echo x + test 1 = 0 + fail=0 + sleep 1 + pid=29813 + tail --pid=29813 -f f + fail=1 + chattr -a f + Exit 1 + set +e + exit 1 + exit 1 + remove_tmp_ + __st=1 + cleanup_ + : + cd /usr/src/buildd/coreutils/tests + chmod -R u +rwx /usr/src/buildd/coreutils/tests/cu-append-only.qJhExA8KWr + rm -rf /usr/src/buildd/coreutils/tests/cu-append-only.qJhExA8KWr + exit 1
signature.asc
Description: This is a digitally signed message part