[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: test-select-out failures
From: |
Simon Josefsson |
Subject: |
Re: test-select-out failures |
Date: |
Tue, 11 Nov 2008 10:23:29 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) |
Bruno Haible <address@hidden> writes:
> Simon Josefsson wrote:
>> The failing test is the first pipe test:
>>
>> ( { echo abc; ./test-select-fd w 1; } | { sleep 1; cat; } ) > /dev/null 2>
>> t-select-out.tmp
>> test `cat t-select-out.tmp` = "0" || echo exit
>>
>> Those two commands prints 'exit' here. The other tests, including the
>> second pipe test works fine.
>
> OK, it was probably unwise to rely on specific contents of stderr in a
> test. (When I add "set -x" as second line of the test, for debugging,
> it also fails due to extraneous output to stderr.)
>
> This should improve things:
It doesn't solve the problem on my system, though:
address@hidden:~/src/gnulib/testdir1013/build/gltests master$ bash -x
../../gltests/test-select-out.sh
+ tmpfiles=
+ trap 'rm -fr $tmpfiles' 1 2 3 15
+ tmpfiles=' t-select-out.out t-select-out.tmp'
+ rm -f t-select-out.tmp
+ ./test-select-fd w 1 t-select-out.tmp
++ cat t-select-out.tmp
+ test 1 = 1
+ rm -f t-select-out.tmp
+ echo abc
+ ./test-select-fd w 1 t-select-out.tmp
+ sleep 1
+ cat
++ cat t-select-out.tmp
+ test 1 = 0
+ exit 1
address@hidden:~/src/gnulib/testdir1013/build/gltests master$ echo $?
1
address@hidden:~/src/gnulib/testdir1013/build/gltests master$
address@hidden:~/src/gnulib/testdir1013/build/gltests master$ ( { echo abc;
./test-select-fd${EXEEXT} w 1 t-select-out.tmp; } | { sleep 1; cat; } ) >
/dev/null
address@hidden:~/src/gnulib/testdir1013/build/gltests master$ cat
t-select-out.tmp
1
address@hidden:~/src/gnulib/testdir1013/build/gltests master$
Ideas?
It seems to happen on my build machine as well:
http://autobuild.josefsson.org/gnulib/log-200811110357663564000.txt
It is also a x86 debian testing machine, so no surprise.
Thanks,
/Simon