From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1734) id D1D1C3858D35; Mon, 22 Apr 2024 15:26:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D1D1C3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713799573; bh=5zhR1K8o1XBll8I4n8uB0TbKcmCY6PooRGaRW2pKBjg=; h=From:To:Subject:Date:From; b=vtFcjc5u53rQJDOzzwDspxtXAWIez4XxBp74L2gqv6xFkdgUL3sxwi6Z1ZyJcyaCc 1wUNVq27ZPVazYWvZSTrCLbLVHfipQ6ATr3FR7guJim3IhQrHp9qyITkl10gq08ZGa bzgBxq4Vr4Tclt67w4qTE5kWTUiLKUWywAMszsWU= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Marek Polacek To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-10075] testsuite: prune -freport-bug output X-Act-Checkin: gcc X-Git-Author: Marek Polacek X-Git-Refname: refs/heads/trunk X-Git-Oldrev: cacc55a4c0be8d0bc7417b6a28924eadbbe428e3 X-Git-Newrev: 0db19228a9feba5a8f4e13b21f25f3aa8a6c5e85 Message-Id: <20240422152613.D1D1C3858D35@sourceware.org> Date: Mon, 22 Apr 2024 15:26:13 +0000 (GMT) List-Id: https://gcc.gnu.org/g:0db19228a9feba5a8f4e13b21f25f3aa8a6c5e85 commit r14-10075-g0db19228a9feba5a8f4e13b21f25f3aa8a6c5e85 Author: Marek Polacek Date: Fri Apr 19 13:51:41 2024 -0400 testsuite: prune -freport-bug output When the compiler defaults to -freport-bug, a few dg-ice tests fail with: Excess errors: Preprocessed source stored into /tmp/cc6hldZ0.out file, please attach this to your bugreport. We could add -fno-report-bug to those tests. But it seems to me that a better fix would be to prune the "Preprocessed source stored..." message in prune_gcc_output. gcc/testsuite/ChangeLog: * lib/prune.exp (prune_gcc_output): Also prune -freport-bug output. Reviewed-by: Jakub Jelinek Diff: --- gcc/testsuite/lib/prune.exp | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/lib/prune.exp b/gcc/testsuite/lib/prune.exp index f3d3c99fbcb..d00d37f015f 100644 --- a/gcc/testsuite/lib/prune.exp +++ b/gcc/testsuite/lib/prune.exp @@ -51,6 +51,7 @@ proc prune_gcc_output { text } { regsub -all "(^|\n)\[^\n\]*: re(compiling|linking)\[^\n\]*" $text "" text regsub -all "(^|\n)Please submit.*instructions\[^\n\]*" $text "" text regsub -all "(^|\n)\[0-9\]\[0-9\]* errors\." $text "" text + regsub -all "(^|\n)Preprocessed.*bugreport\[^\n\]*" $text "" text # Diagnostic inclusion stack regsub -all "(^|\n)(In file)?\[ \]+included from \[^\n\]*" $text "" text