From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id edIVBPhUYmoMQSoAWB0awg (envelope-from ) for ; Thu, 23 Jul 2026 13:52:56 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=palves.net header.i=@palves.net header.a=rsa-sha256 header.s=dreamhost header.b=W4hApxaA; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 0CC221E09E; Thu, 23 Jul 2026 13:52:56 -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,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 7BEED1E033 for ; Thu, 23 Jul 2026 13:52:55 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E86E64BA23F6 for ; Thu, 23 Jul 2026 17:52:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E86E64BA23F6 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=palves.net header.i=@palves.net header.a=rsa-sha256 header.s=dreamhost header.b=W4hApxaA Received: from lavender.cherry.relay.mailchannels.net (lavender.cherry.relay.mailchannels.net [23.83.223.99]) by sourceware.org (Postfix) with ESMTPS id 993954BA23CA for ; Thu, 23 Jul 2026 17:52:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 993954BA23CA Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=palves.net ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 993954BA23CA Authentication-Results: sourceware.org; arc=none smtp.remote-ip=23.83.223.99 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784829134; cv=none; b=kXckuKg5Zn0GvHHnj+4BGD5ZW3XdRLNlnHggNqXDAfo9iXaWGLVhzcsRZnljyen8Tny5plcze8P2/621tRxfYJHp6M62aSKzHxxqTuK6n7TNxZ4oYqluvdLKhGS0pDN91VD1s5sDJsLUnWjAo5Y6w3I+LPz/BCBVMgr2RzhDEVg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784829134; c=relaxed/simple; bh=ajLc6JNtwoDMIu/4t9vvzCwdU5F4Fhk6R2kuRw8zfeI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=LNpdZgfFYC7cVI3zQOBAIDFPzed0Ty3Q/4bIPbrzM/PR/OXAiIFLa0FAJd/goPld/B3Dfi11Ky9PgZiv96lKfb/wrhYnVw4uJTKEBLtMmx6b50bFsQClyHAI7oosSX+shmOBywrm1ckHFAMqvVwDr5yITr6S85OKVi8H5tqtP5A= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=palves.net header.i=@palves.net header.a=rsa-sha256 header.s=dreamhost header.b=W4hApxaA DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 993954BA23CA X-Sender-Id: dreamhost|x-authsender|pedro@palves.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id B747C640E22 for ; Thu, 23 Jul 2026 17:52:13 +0000 (UTC) Received: from pdx1-sub0-mail-a242.dreamhost.com (trex-green-7.trex.outbound.svc.cluster.local [100.103.100.118]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 679FD641FEE for ; Thu, 23 Jul 2026 17:52:13 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|pedro@palves.net X-MC-Relay: Good X-MailChannels-SenderId: dreamhost|x-authsender|pedro@palves.net X-MailChannels-Auth-Id: dreamhost X-Plucky-Suffer: 66c1d5424385a75b_1784829133661_2302690076 X-MC-Loop-Signature: 1784829133660:1950670124 X-MC-Ingress-Time: 1784829133660 Received: from pdx1-sub0-mail-a242.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.103.100.118 (trex/8.0.2); Thu, 23 Jul 2026 17:52:13 +0000 Received: from localhost (bl20-181-64.dsl.telepac.pt [2.81.181.64]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pedro@palves.net) by pdx1-sub0-mail-a242.dreamhost.com (Postfix) with ESMTPSA id 4h5dx869rNz1049 for ; Thu, 23 Jul 2026 10:52:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=palves.net; s=dreamhost; t=1784829133; bh=tPQ4h4v3fwBz3LOErNXtHYDtfZM8Ft+FkuFGbBSEJq4=; h=From:To:Subject:Date:Content-Transfer-Encoding; b=W4hApxaAcVUFuxE5KVaxfT3zDsLFcpAPGlQl4quatTOwzLvgbiqKPoPyyFSKCCFTl DYf9yFuIZs5FGj+KPgBPcPOzR3aEyau8q8SY1Bl3aiKn8CjxOd6gpR/JXBVKCFMoPB KAJOI2iWkBaNXpwcbfLO0R/oGGwRKWzXQPbjiz2o4K5BYijFaKZKr+Ij56K79Gzd49 C4J8SfY1KLn/01G5934v0VWSsmxEjvsDfbggjzRwS5O3hiAO1QmflPugk5xeG8eWiG sdXTncS6vHw1irzxqD4gSpK44/9yffa5mSEPkTDsogAhd1KBNeQ8Zy4S0PbUAoAwWw uslYfPWGDEmWA== From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 4/4] gdb/testsuite: Pipe the dg-extract-results file list via stdin Date: Thu, 23 Jul 2026 18:51:31 +0100 Message-ID: <20260723175131.266112-5-pedro@palves.net> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260723175131.266112-1-pedro@palves.net> References: <20260723175131.266112-1-pedro@palves.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The parallel-testing targets combine the per-test result files into a single gdb.sum / gdb.log pair with the DG_EXTRACT_RESULTS macro, which passes the whole list to contrib/dg-extract-results.sh on the command line, one positional argument per file: $(SHELL) .../dg-extract-results.sh \ `find $(1) -name gdb.sum -print` > $(2)/gdb.sum A parallel run writes one gdb.sum (and one gdb.log) per .exp, so with GDB's testsuite the whole list is thousands of paths. On Windows with native Windows Python that overflows the command-line length limit (~32 KB), and the run dies while combining the results: $ make check-parallel ... .../dg-extract-results.sh: line 39: /ucrt64/bin/python3: Argument list too long make: *** [Makefile:274: check-parallel] Error 2 ... $ find outputs/ -name gdb.sum | wc -l 2657 An earlier commit taught dg-extract-results.sh/dg-extract-results.py a -f option that reads the file list from a file, or from standard input when the argument is "-", so we can now fix this by piping the find output into dg-extract-results.sh via stdin instead, so the command line length limit no longer applies. Change-Id: I5d8c94332eda9bf49c9b0144dabb846de1102f57 --- gdb/testsuite/Makefile.in | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/gdb/testsuite/Makefile.in b/gdb/testsuite/Makefile.in index f671e90e125..11782a860db 100644 --- a/gdb/testsuite/Makefile.in +++ b/gdb/testsuite/Makefile.in @@ -257,11 +257,18 @@ check-single-racy: # Combine the individual gdb.sum / gdb.log files found anywhere under # directory $(1) into a single gdb.sum / gdb.log pair in directory # $(2), using contrib/dg-extract-results.sh. +# +# The file list is piped in via "-f -" rather than expanded onto the +# command line: a parallel run writes one gdb.sum/gdb.log per .exp, so +# the list can hold thousands of paths and overflow the command-line +# length limit (notably on Windows, where the limit is ~32 KB). define DG_EXTRACT_RESULTS - $(SHELL) $(srcdir)/../../contrib/dg-extract-results.sh \ - `find $(1) -name gdb.sum -print` > $(2)/gdb.sum; \ - $(SHELL) $(srcdir)/../../contrib/dg-extract-results.sh -L \ - `find $(1) -name gdb.log -print` > $(2)/gdb.log + find $(1) -name gdb.sum -print \ + | $(SHELL) $(srcdir)/../../contrib/dg-extract-results.sh -f - \ + > $(2)/gdb.sum; \ + find $(1) -name gdb.log -print \ + | $(SHELL) $(srcdir)/../../contrib/dg-extract-results.sh -L -f - \ + > $(2)/gdb.log endef check-parallel: -- 2.54.0