GNU bug report logs - #72536
[PATCH] tap: new `--merge-prefix' option to prefix stderr before merging

Previous Next

Package: automake-patches;

Reported by: Richard Hansen <rhansen <at> rhansen.org>

Date: Fri, 9 Aug 2024 08:40:01 UTC

Severity: normal

Tags: patch

Done: Karl Berry <karl <at> freefriends.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Richard Hansen <rhansen <at> rhansen.org>
To: jcb62281 <at> gmail.com, Karl Berry <karl <at> freefriends.org>
Cc: 72536 <at> debbugs.gnu.org
Subject: [bug#72536] [PATCH v3] tap: new `--stderr-prefix' option to prefix test script's stderr
Date: Fri, 21 Feb 2025 19:21:29 -0500
[Message part 1 (text/plain, inline)]
On 2/20/25 19:29, Jacob Bachmeyer wrote:
> Could we filter both stdout and stderr through functions that timestamp 
> each line, then merge the two and sort on the timestamps?

Unfortunately this wouldn't help---it would be subject to the same 
reordering race condition.  The timestamp value that is added to a line 
would depend on when the kernel woke up the reading thread/process, so 
the timestamps wouldn't always accurately represent the time the test 
program wrote the line.  If the kernel woke up the stderr and stdout 
threads in the opposite order of writing, then the timestamps would be 
in the wrong order.

-Richard
[OpenPGP_signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 97 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.