Re: [PATCH] tests: tail: avoid intermittent failure on NetBSD
From:
Collin Funk
Subject:
Re: [PATCH] tests: tail: avoid intermittent failure on NetBSD
Date:
Tue, 01 Sep 2026 20:36:05 -0700
User-agent:
Gnus/5.13 (Gnus v5.13)
Pádraig Brady <P@draigBrady.com> writes:
> It seems that NetBSD requires a fifo to be open, not merely opened,
> to ensure a subsequent open proceeds. Immediately closing the opened
> fifo caused intermittent failures on NetBSD 10.0. While that seems
> like a bug in NetBSD, we can avoid the issue.
>
> * tests/tail/pid-pipe.sh: Hold the fifo open until our writer
> has opened it. This also allows specifying a single timeout
> (of 12.7s), rather than 2 separate timeouts.
> ---
> tests/tail/pid-pipe.sh | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
Nice, this was the one Bruno reported ~2 weeks ago [1]. I forgot to
respond to your email there, my bad. Nice catch on the weird error with
local variables in /bin/sh, I don't think I would have ever caught that
[2].
Collin
[1] https://lists.gnu.org/archive/html/coreutils/2026-07/msg00038.html
[2]
https://github.com/coreutils/gnulib/commit/6753261200320ee69cc33848967810f4f2f72e7e