From patchwork Tue Feb 28 01:27:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 62226 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2745484wrd; Mon, 27 Feb 2023 17:28:02 -0800 (PST) X-Google-Smtp-Source: AK7set8AShl7oNhB3L42dF4svID4vzPHVmolBqcYXAABZJQMSnYnxrswO6Tmm7mDBwXbAzqkn/He X-Received: by 2002:a17:907:9851:b0:8af:3b78:315d with SMTP id jj17-20020a170907985100b008af3b78315dmr621206ejc.23.1677547682626; Mon, 27 Feb 2023 17:28:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677547682; cv=none; d=google.com; s=arc-20160816; b=IlHqWj2C9NQte8fmnHTOIqTlKQvkLmIefJiN3bXTs/RbtglNUqmgH31+fzub3I0Fbu CZhI+iA+dEGXzLa7Dz+ne0Kyy8DKJ+X1/c/MdBlgHSi+T114lgTLGtQWbX1yt8YePLEo otVQtljOJ10+77TvcDFfW9ODRa3lM7qwuNkxsvfVWSWqiPpHkgbTaxHRFuRAyEZ217Or szOL8fEGJ/rCjZAumarGCY5TiqzpKzgKo35lShrVyvp80NKwriFXF5iYFB6q+6yZnZqg 3LgsF0/3QnQ2f0dULxXuiKdWo++0MlnIk31BPN26v7idnq4F0VXTzoEi2o7EnNfdmoI7 LSsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:date:message-id :content-transfer-encoding:mime-version:subject:to:dmarc-filter :delivered-to:dkim-signature:dkim-filter; bh=aY/wQnf00XLBk2hV9mMzoeTSZgW9flflLq83W8McAOE=; b=SJ0ObIUdOxQerFwOanrbr4wdjkggGwnUS8SDPdxSi/oTtKRmDE/jxK0guuLyH2qlg1 kp+Dvq3jd9QerC0MpNjnL0EbXqci0G/YSkNfu+kHoevPzXtHNqOW9nJO2AwnlTNNOgiq NHq31tX12IsWPtDxV6YmQ5Xa5Z2mv3kzAxip3swa2A/EMQwd3wJ9BRVnZaomBtx+jjVC 5eLwHcCkO7Jg+Bfn+K/5e1J9lHX3r34K3KjwBui9zqitI40ClwO8WzbNVsP/0CjmReTX 18nHNY3rPFDxiuqvt4sAHLy7+AgU0c5HY/yQth8A3KX4MSj5JC6kKfNWdJmwOUWCGB6k EDvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=Wasd1jBx; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id g9-20020a1709064e4900b008b176ccbf44si9767434ejw.43.2023.02.27.17.28.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 17:28:02 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=Wasd1jBx; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6A8D63858410 for ; Tue, 28 Feb 2023 01:28:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6A8D63858410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677547681; bh=aY/wQnf00XLBk2hV9mMzoeTSZgW9flflLq83W8McAOE=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Wasd1jBxrw9ZMBl65YG9Qy6jmaD74rG0I9WJ0/y8dWxQvSfPKb7gaGjcEVnyU6sBD dojWF+eMAx8naeqvWJpFTkmaMtZ8hTBTf3j++wFKFRJNaOa/OcfDzBbR0Hz8aq17eg 50fYDIXX0GEWR5ahqVMTSWgFXFScGbJAf6tVOAjI= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by sourceware.org (Postfix) with ESMTPS id 5E5EB3858D32 for ; Tue, 28 Feb 2023 01:27:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5E5EB3858D32 To: Subject: [COMMITTED] testsuite: Shorten multiline pattern message to the same for fail and pass MIME-Version: 1.0 Message-ID: <20230228012714.1C78E2043D@pchp3.se.axis.com> Date: Tue, 28 Feb 2023 02:27:14 +0100 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Hans-Peter Nilsson via Gcc-patches From: Hans-Peter Nilsson Reply-To: Hans-Peter Nilsson Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759036238695057976?= X-GMAIL-MSGID: =?utf-8?q?1759036238695057976?= As recommended by testsuite maintainer: Regression analysis works only if the string is the same. testsuite: * lib/multiline.exp (handle-multiline-outputs): Shorten message to the same for fail and pass. --- gcc/testsuite/lib/multiline.exp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/lib/multiline.exp b/gcc/testsuite/lib/multiline.exp index 5eccf2bbebc1..cfd928f6e28a 100644 --- a/gcc/testsuite/lib/multiline.exp +++ b/gcc/testsuite/lib/multiline.exp @@ -169,9 +169,9 @@ proc handle-multiline-outputs { text } { # Use "regsub" to attempt to prune the pattern from $text if {[regsub -line $rexp $text "" text]} { # The multiline pattern was pruned. - ${maybe_x}pass "$title was found" + ${maybe_x}pass "$title" } else { - ${maybe_x}fail "$title not found" + ${maybe_x}fail "$title" } set index [expr $index + 1]