I can reproduce this on mingw as well:
gnulib-tool --create-testdir --dir m --with-tests select
cd m
./configure --host=i586-mingw32msvc --build=i686-pc-linux-gnu
make check
results in:
FAIL: test-select-in.sh
FAIL: test-select-out.sh
For test-select-out.sh, it is the same test that fails on x86 for me,
the first pipe test:
rm -f t-select-out.tmp
( { echo abc; ./test-select-fd${EXEEXT} w 1 t-select-out.tmp; } | { sleep 1;
cat; } ) > /dev/null
test `cat t-select-out.tmp` = "0" || exit 1
For test-select-in it is the final 'special files' test that fails:
rm -f t-select-in.tmp
./test-select-fd${EXEEXT} r 0 t-select-in.tmp < /dev/null
test `cat t-select-in.tmp` = "1" || exit 1
Ideas?
/Simon