misc: Fix tst-select timeout handling (BZ#27648)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 25 Mar 2021 19:57:45 +0000 (16:57 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 26 Mar 2021 14:57:11 +0000 (11:57 -0300)
commit1b53b5d970c232b48843c778ac4566ff5b566c3b
tree842e92c623762e9deac8d958e383b5dc3dcbb500
parent850dbf24ee04c1e462640b87dbe1c6044fbe65e2
misc: Fix tst-select timeout handling (BZ#27648)

Instead of polling the stderr, create two pipes and fork to check
if child timeout as expected similar to tst-pselect.c.  Also lower
the timeout value.

Checked on x86_64-linux-gnu.
misc/tst-select.c