From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id c6JjJrb2j2oodQUAWB0awg (envelope-from ) for ; Thu, 27 Aug 2026 04:35:02 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=o2.pl header.i=@o2.pl header.a=rsa-sha256 header.s=20241105 header.b=gzq+U2sq; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id A803D1E0A3; Thu, 27 Aug 2026 04:35:01 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id C89761E09B for ; Thu, 27 Aug 2026 04:34:57 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A0B664BA2E1C for ; Thu, 27 Aug 2026 08:34:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A0B664BA2E1C Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=o2.pl header.i=@o2.pl header.a=rsa-sha256 header.s=20241105 header.b=gzq+U2sq Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.148]) by sourceware.org (Postfix) with ESMTPS id 29E684BA2E03 for ; Thu, 27 Aug 2026 08:34:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 29E684BA2E03 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=o2.pl Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=o2.pl ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 29E684BA2E03 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=193.222.135.148 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1787819666; cv=none; b=LTHIqXVHMCYUePcLWj6evWqtik5Rf8aXiGE8jrg1fscsCNoeUOkTMS8arv573qAacMtAh04PsgfZX5NK20Z8j7j28vZVf0qUS44oT6dQwqX+yIi8ANHyTw7tAZllByrpncRVogfEoB3WXtEamgkEz/8c4ZVxgAsqKFHuRDeQq3c= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1787819666; c=relaxed/simple; bh=BbYrWNiNKec0Go+3XnziyMZVYCjB9suTT7hr+yxSuqs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=H2exc6mzJ0O2FdLA/CM+9JMX8iQVhh53nh3Yy9Ps/ow+lpF39AFVY36FxXQVdTYfsr0tv0aYYiSHz9wXswdHrw4MpoLAiERrGLUqktCyIYDrhJwLQjAiFdTPobH0g4OcAExBaTjMOCZc+vmiyW1TGvLYBdPTSXMYzACGP5Tw/QY= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=o2.pl header.i=@o2.pl header.a=rsa-sha256 header.s=20241105 header.b=gzq+U2sq DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 29E684BA2E03 Received: (wp-smtpd smtp.tlen.pl 14200 invoked from network); 27 Aug 2026 10:34:19 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=20241105; t=1787819659; bh=LlVDV0kzPk9tIX4PUvjizm5UQIkrOqlkc7RC1rK/a3I=; h=From:To:Cc:Subject; b=gzq+U2sq+03ljDitKQSwsLupz1CeISxv3dnxknJUovrmUH+P5g64FgMnN8MR3/le7 peNQnrkzZj7PnFLbh7ov/qLMsowhPaSYZqOvGta6ctaeNSezRuMjBXNqJ34RwD3hM0 h1PEnmbK6pDT5LkV6CSyb3tQZESgz5XdGbVtPOF2U5+/PyWQOuu+pEoiDaAizy7cHw CCvd4rlOD1VQboOUtWA29G4/fMlpSXIZSkMKX6a9f+Hv8dX78lvjjJiMH17TrEAI/W C1W32Q1HmxWAV4mCdrEiR3aDy00HFgYZWl0YoJD4u8Ryp/0GnzhQMPZQqPYwE8s1sZ FPki5pRcnoQyw== Received: from jdxpc (ip-94-42-230-181.multimo.pl [94.42.230.181]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with TLS_AES_256_GCM_SHA384 encrypted SMTP for ; 27 Aug 2026 10:34:19 +0200 From: Jan Dubiec To: gdb-patches@sourceware.org Cc: Jan Dubiec , Andrew Burgess Subject: [REPOST][PATCH] H8/300: sim: testsuite: Use the correct file descriptor for stdout Date: Thu, 27 Aug 2026 10:31:05 +0200 Message-ID: <20260827083334.1637356-1-jdx@o2.pl> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-WP-MailID: 8fcfee757fc8995c6f16750cffbb03fa X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000007 [ITQ0] X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org This is obviously a typo, because the file descriptor for stdout is 1 on both Linux and Windows. As a result, the test cases returned nothing on Windows, i.e. neither "pass" nor "fail". It works on Linux, however, because file descriptors 0-2 usually all refer to the same underlying device, which is opened for bidirectional I/O. File descriptor 1 may be line- or block-buffered by libc, but once the data is actually written to the kernel, it ultimately goes to the same underlying bidirectional pseudo-terminal device. --- sim/testsuite/h8300/testutils.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sim/testsuite/h8300/testutils.inc b/sim/testsuite/h8300/testutils.inc index 63d27d45c14..1e2c7c31c7b 100644 --- a/sim/testsuite/h8300/testutils.inc +++ b/sim/testsuite/h8300/testutils.inc @@ -85,7 +85,7 @@ _main: ; Output "pass\n" .macro pass - mov.w #0, r0 ; fd == stdout + mov.w #1, r0 ; fd == stdout .if (sim_cpu == h8300) mov.w #pass_str, r1 ; buf == "pass\n" mov.w #5, r2 ; len == 5 @@ -98,7 +98,7 @@ _main: ; Output "fail\n" .macro fail - mov.w #0, r0 ; fd == stdout + mov.w #1, r0 ; fd == stdout .if (sim_cpu == h8300) mov.w #fail_str, r1 ; buf == "fail\n" mov.w #5, r2 ; len == 5 -- 2.55.0