Bruno Haible <[EMAIL PROTECTED]> 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:

[EMAIL PROTECTED]:~/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
[EMAIL PROTECTED]:~/src/gnulib/testdir1013/build/gltests master$ echo $?
1
[EMAIL PROTECTED]:~/src/gnulib/testdir1013/build/gltests master$ 

[EMAIL PROTECTED]:~/src/gnulib/testdir1013/build/gltests master$ ( { echo abc; 
./test-select-fd${EXEEXT} w 1 t-select-out.tmp; } | { sleep 1; cat; } ) > 
/dev/null
[EMAIL PROTECTED]:~/src/gnulib/testdir1013/build/gltests master$ cat 
t-select-out.tmp 
1
[EMAIL PROTECTED]:~/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


Reply via email to