DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 51H8TQlW2839170
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 51H8TQlW2839170
Authentication-Results: delorie.com;
	dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=Flb0c0z0
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4C5773858D21
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1739780964;
	bh=pahYfjvzq1dtuiac+OzjOMvAE9yb00gZ/z6EO2mgOL4=;
	h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
	 List-Help:List-Subscribe:From:Reply-To:From;
	b=Flb0c0z0UwiShEh3YiEPl/YLLBrYTQVdD/V5tjw1B7mBuRBXrM4ovR7NGdb4pcnxq
	 /k6AL7fyLqaN6GRE52ZIlOpPGHGM77RXbwixWuhUN4WG30K3YsmWojaGLR/XIZy21t
	 ZlamBlPy4GwEwag2DFir+dUomjvTcNKLY/sId7gQ=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2D5573858D1E
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2D5573858D1E
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1739780894; cv=none;
 b=uji1x/YVUK9Ds3X92KAciJFqF3n2gWgYEUBPN6oSTSH/iEg2qjF8H08Xpw6mHTLMgFkoXlksODpIYNH0AwD8rTR1q1pPObgbKcybO2tsxLhfyMRzTcUIKcjB1ZYGEgTWXqYr9uIYcGdY35Crz1YBsiFtj77XjhKjXJbWdiyAnyw=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1739780894; c=relaxed/simple;
 bh=UOmv4Uil8hlgNrwb/TEB+xxazDXgOi8QAas9zlgEJLA=;
 h=DKIM-Signature:Message-ID:Date:MIME-Version:From:Subject:To;
 b=d7RiMaf4JX/MqAChXrmKs3ahuReu1FGprpylDBv67bWKssMBfH1TA4d+GRzDfh8OyDHywNSx5LoIIIetjsuJ+IigfWVCBpxllxkcjtC1bkwsmu+aDV9tliKXcaebOMM/YvMhvC/IFiqOndLT9gEHIjlmO2YP1I9LEwozsE1ATL8=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2D5573858D1E
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739780893; x=1740385693;
 h=content-transfer-encoding:to:subject:from:content-language
 :user-agent:mime-version:date:message-id:x-gm-message-state:from:to
 :cc:subject:date:message-id:reply-to;
 bh=Bt8QdyHf3phNWdB9Gxbt/vTnglMl7G38h3VScrjAgdQ=;
 b=vJKx05wJK7rNJQBdT6HtkdaqahOKZdwOHHkEglkS/GPON27nkLCyLWG9VFEkUe3gx7
 4RsQ87quEIK+5VCIBANUwyDIIcEkjrLJ1BnkCyxuQcNAjArjPAWgbU7g2Qp8KWlWbMnb
 LoEOXq8tgu9lZhqsfQsumo0pKqavkxad7A2i0tQvqQ1sPko5EpZ4183r1hNBwrcH6pPG
 gFmxa0gQrJSAzV2eZobCJxo9f2BE2mzzWWbfhZp4/UE1j/t3qPnjuMOhEk+p1yArIYcJ
 Ow5acT6ejZ7EU7MRJ/Qr+F3IORxt6I7mIGtokyRLud7ciDGNt6TPmL+IcuCBIEkT4/Pe
 CHdQ==
X-Gm-Message-State: AOJu0YyNqTpNCrzUXUYdtZJq3mZNTxdLeiftR206C+UKrC5tpW+FUqbW
 jxJLbAtwITvyuKishiROM6YO+lXs+SU8WxR/InjhwHu5Iwjw+C7opS50hQ==
X-Gm-Gg: ASbGncs9hPJbv6fJ8U/ya71fkCIb4iOjaP1GwHcyQQYPwBE1AKygvP43EWJto9mj1ev
 7H72FmnKlJ42QV0S1b1MUkMI3lQFZvJpGPPSlztpp/GMkh6RUNY5laDvGE4CtZcMxheKWMh4A4P
 JEyNLm5rqhglTWfRZm4FXkh8a4slbljttMv/nE+ne512nbwbdkDHM7s5a7TctnMNhCvMCulVa9+
 BL1iGKVy/in6ak6h1phYCInFrEKpJzAFY1TcnrWt1GiRxhm1aURBKNfggkVzwxXWa4OmmmkDego
 KDdqk27xR9pTFdCRmiT3B+fXqRHmAZSMLTrbGoaBWH4zSkw1mdKVIcfuEA05Z5VXvOfaRNs=
X-Google-Smtp-Source: AGHT+IFiJ/RiWL4KsMDXPmlJGIkqqUmBDOMFZgK1w5/5uYjWawZO/c4ytNtSj8j+OfIYX+CRzk6SRQ==
X-Received: by 2002:a05:600c:a0d:b0:439:4a2a:f318 with SMTP id
 5b1f17b1804b1-4396e750870mr63151535e9.28.1739780892659; 
 Mon, 17 Feb 2025 00:28:12 -0800 (PST)
Message-ID: <6bc117eb-ece2-43a7-91ae-6ab17d62f6ca@gmail.com>
Date: Mon, 17 Feb 2025 09:28:11 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
Subject: lost output after pipe redirection
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Marco Atzeri via Cygwin <cygwin@cygwin.com>
Reply-To: Marco Atzeri <marco.atzeri@gmail.com>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>

Hi Takashi,

I think there is still issue on pipe redirection output lost.
I have two cases where during package tests the test are reported as 
failures as the output is missing, while running the test stand alone 
the output is produced as expected.

The simplest one is relative to gdbm
https://cygwin.com/cgi-bin2/jobs.cgi?id=9408

the four tests that are failing are the ones in which a input is also 
provided
--------------------------------------------------------------
gdbmtool

  30: Input from file                                 FAILED 
(gdbmtool00.at:20)
  31: Input from stdin                                FAILED 
(gdbmtool01.at:20)
  32: Input from command line                         FAILED 
(gdbmtool02.at:20)
  33: Initialization file                             FAILED 
(gdbmtool03.at:19)
--------------------------------------------------------------

but running the tests stand alone the expected output is produced

----------------------------------------------------------------
/pub/devel/gdbm/gdbm-1.24-1.x86_64/build
$ cat >input <<'_ATEOF'

status
version
quit
_ATEOF

  /pub/devel/gdbm/gdbm-1.24-1.x86_64/build
$ PATH="/pub/devel/gdbm/gdbm-1.24-1.x86_64/inst/usr/bin:${PATH}" 
gdbmtool -f input | sed 's/^GDBM version.*/GDBM version/'
Database file: junk.gdbm
Database is not open
define key string
define content string
GDBM version
--------------------------------------------------------------

It fails locally and on SCALLYWAG. Both on 3.5.7 and latest 3.6.0-dev


the other case is gdal
https://cygwin.com/cgi-bin2/jobs.cgi?id=9404

for this case the build is much more demanding and the tests pass
though cmake/ctest. I have not check all the tests in this case
but the one I checked have the same issue: running the test stand alone 
produce the expected result while during the ctest run no output is
provided.

Thanks in advance
Marco



-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
