one new failure for 7.2 - can't access /dev/stdin FAIL: mv/i-3.log (exit: 1) ========================== + mv --version mv (GNU coreutils) 7.2 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 Mike Parker, David MacKenzie, 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_=/var/tmp/portage/sys-apps/coreutils-7.2/work/coreutils-7.2/tests +++ this_test_ +++ echo ././mv/i-3 +++ sed 's,.*/,,' ++ this_test=i-3 +++ /var/tmp/portage/sys-apps/coreutils-7.2/work/coreutils-7.2/src/mktemp -d --tmp=/var/tmp/portage/sys-apps/coreutils-7.2/work/coreutils-7.2/tests cu-i-3.XXXXXXXXXX ++ t_=/var/tmp/portage/sys-apps/coreutils-7.2/work/coreutils-7.2/tests/cu-i-3.IFxeAd70WB ++ trap remove_tmp_ 0 ++ trap 'Exit $?' 1 2 13 15 ++ cd /var/tmp/portage/sys-apps/coreutils-7.2/work/coreutils-7.2/tests/cu-i-3.IFxeAd70WB ++ diff --version ++ grep GNU + require_controlling_input_terminal_ + tty -s + test -t 0 + test '' = no + skip_if_root_ + uid_is_privileged_ ++ id -u + my_uid=250 + case $my_uid in + return 1 + trap '' TTIN + touch f g h i + chmod 0 g i + fail=0 + ls /dev/stdin + pid=25297 + sleep 1 + mv f g ./mv/i-3: line 38: /dev/stdin: Permission denied + kill 25297 ./mv/i-3: line 40: kill: (25297) - No such process + case "`cat out`" in ++ cat out cat: out: No such file or directory + fail=1 + mv -f h i + test -f i + test -f h + case "`cat out`" in ++ cat out + Exit 1 + set +e + exit 1 + exit 1 + remove_tmp_ + __st=1 + cleanup_ + : + cd /var/tmp/portage/sys-apps/coreutils-7.2/work/coreutils-7.2/tests + chmod -R u+rwx /var/tmp/portage/sys-apps/coreutils-7.2/work/coreutils-7.2/tests/cu-i-3.IFxeAd70WB + rm -rf /var/tmp/portage/sys-apps/coreutils-7.2/work/coreutils-7.2/tests/cu-i-3.IFxeAd70WB + exit 1 make[4]: *** [test-suite.log] Error 1 Portage 2.2_rc28 (default/linux/amd64/2008.0/developer, gcc-4.4.0-pre9999, glibc-2.9_p20081201-r2, 2.6.29-gentoonokms x86_64) ================================================================= System uname: Linux-2.6.29-gentoonokms-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-glibc2.2.5 Timestamp of tree: Wed, 01 Apr 2009 00:30:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p10-r1 dev-java/java-config: 2.1.7 dev-lang/python: 2.5.4-r2 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.3 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.3-r1 sys-apps/sandbox: 1.7 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19.51.0.3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.28-r1 FEATURES="ccache collision-protect cvs distlocks fixpackages metadata-transfer multilib-strict parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict test unmerge-orphans userfetch userpriv usersandbox"
it passed just fine for me you do have /dev/stdin right ? it should be a symlink to fd/0 ...
I had thought it might have been sandboxy related, but this problem occurs for me with it either on OR off. If /dev/stdin did not exist the test would have been skipped: fail=0 ls /dev/stdin >/dev/null 2>&1 \ || skip_test_ 'there is no /dev/stdin file' The above code runs fine. mv f g < /dev/stdin > out 2>&1 & pid=$! Appears to be the problem. Out doesn't get created, so I'm guessing this is due to something related to bash-4 ( which, like many of the other facets he lists in his --info, I also have, cpu/arch/gcc-version )
http://lists.gnu.org/archive/html/bug-coreutils/2009-04/msg00010.html
Created attachment 187028 [details, diff] coreutils-7.2-mv-test-stdin.patch
yes, i saw that change, but your system is still broken. /dev/stdin should exist and be a symlink to fd/0. we shouldnt ignore that.
it is: dirtyepic@halo ~ $ ll /dev/stdin lrwxrwxrwx 1 root root 4 2009-03-31 23:25 /dev/stdin -> fd/0 dirtyepic@halo ~ $ ll /dev/fd/0 lrwx------ 1 dirtyepic users 64 2009-04-01 17:47 /dev/fd/0 -> /dev/pts/2
i did ask for that info originally :P added the patch to coreutils-7.2 then, thanks