[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [platform-testers] new snapshot available: grep-3.4-almost.19-ff30

From: Paul Eggert
Subject: Re: [platform-testers] new snapshot available: grep-3.4-almost.19-ff30
Date: Mon, 21 Sep 2020 16:53:44 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 9/21/20 3:43 PM, Bruno Haible wrote:
The 'timeout 1 strace -o tr src/grep x <fifo >/dev/null' command does not
terminate within ca. 10 seconds

Oh, so it's a problem with 'timeout', not a bug in 'grep'?

What does 'timeout 1 sleep 2' do? It should exit with status 124 because of the timeout. If it exits with status 0, it's a bug.

What do the following commands do? They are how require_timeout_ decides whether 'timeout' is working.

( timeout 10s true ) > /dev/null 2>&1
echo $? # echoes "0" if 'timeout' works

timeout 10s false
echo $? # echoes "1" if 'timeout' works

Perhaps all we need to do is change require_timeout_ so that it excludes the broken 'timeout' on Alpine 3.10; e.g., require_timeout_ could check that "timeout 0.01 sleep 0.02" exits with status 124.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]