platform-testers
[Top][All Lists]
Advanced

[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: Bruno Haible
Subject: Re: [platform-testers] new snapshot available: grep-3.4-almost.19-ff30
Date: Tue, 22 Sep 2020 04:05:14 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-189-generic; KDE/5.18.0; x86_64; ; )

Paul Eggert 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.

It prints 'Terminated' and exits with status 143 (= signal 15).

> 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

0

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

1

> 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.

"timeout 0.01 sleep 0.02" exits with status 0.

This is on both Alpine Linux 3.10 and 3.12.

Bruno






reply via email to

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