Message ID | 20240208174431.833656-1-torbjorn.svensson@foss.st.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp338254dyd; Thu, 8 Feb 2024 09:45:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IHZKz0NC0h0cIhjetJRs2CPBin18SKzMZtVlsIixA6bP+d2W5iAnOk3LAhG15qnALQSShWo X-Received: by 2002:ad4:5de3:0:b0:68c:805e:e354 with SMTP id jn3-20020ad45de3000000b0068c805ee354mr11553826qvb.38.1707414355336; Thu, 08 Feb 2024 09:45:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707414355; cv=pass; d=google.com; s=arc-20160816; b=bPzIb1euqn30MUOUrF8ees8suw99a9nmUcEX841jsoufTtqYjB2BEuM8rDY8vJxns7 VDIzFOXqpXDa6J2udVhlLmT0P9F35UiHeOTlo74k/uJHYbhWu6hzyOWWabl8IVHPm8+3 v3WxyOZb/r6vJDUNM0ieUV05oto06ScBOZG9mmPtYWjTBedliXrMVLWv14PEB/G7QV4n ey9MEaIYwN80RlMnctBi0UEcApj5Z+kfYE0L+Qzb88fRxpctEDJolTkOf/SIWm6+uoC6 boWe9xGl+L73CKZSrvKFMv7zCYFdhijt5plmkZ6YdQeAlZbAh+WOHgj/4BZNF9dHgBA8 HzsQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=gf8pVdjIhHN5+FKGHscUk6iptxku3bcb2mTS+ftSM2Y=; fh=9k8oeYD+RCe7mWhY2LiWRXjCc+NG9w/U4USSPO9r+Us=; b=G17+ABhwOhtnXt7YPn1qx24uYjLWAFr0xgXsN0c29wnhCTjPh67gOt1Ja57ehjLB6a DkDT76Sg5vT0E8KHVjr8ud6QSGDsB0iCO/6M77i02bPB4klAAT3ocrajUKjveKZoUBnN 4koMi884IXsCtyuw8cghad5Q7UoSkg3kgWDAHBfnpiKzE8ovIO5FTcEGzA1Wlne2c0k4 e4L66c9MoB1ZLiuriYXHP8TV3T4kvZ1N2CgSWSHOqbVXTAoFaan88HNCUIkvIDGTgy6g xW41XhPuf6tFCrSMdylnUxBnKmHmr4dbZf44BhSyHpPUwcteWJcbMJrq3CTkqMIwbeur SaCg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=wXjjfiF8; arc=pass (i=1); 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=foss.st.com X-Forwarded-Encrypted: i=2; AJvYcCXZd7pR9Nlm+ORKRHHEHRNKL/hOKWgkSUOzds24/O3eNpIi7FfnjTF8KkY62fjRlxhg4PGwb5jmiW5x2yTcU3J2SWhRfQ== Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id s12-20020a0562140cac00b0068c3d2d61f1si25205qvs.120.2024.02.08.09.45.55 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 09:45:55 -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=@foss.st.com header.s=selector1 header.b=wXjjfiF8; arc=pass (i=1); 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=foss.st.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0DFC038582A0 for <ouuuleilei@gmail.com>; Thu, 8 Feb 2024 17:45:55 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by sourceware.org (Postfix) with ESMTPS id E96B33858C5F for <gcc-patches@gcc.gnu.org>; Thu, 8 Feb 2024 17:45:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E96B33858C5F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=foss.st.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E96B33858C5F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=91.207.212.93 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707414320; cv=none; b=Kvcz7/hzpwAZSKYmzzIJTAhizCfgsdgmjrU6RYuDJTM9L4ulDpqyKcE8JU638l5dRC08ZBK8Xaai3vfb2KyQ9H/iwGk8IRTniKVhvc3fMRoSEQ6XoR4OkLlwxy2ExckpTmhfXZqw4YnZWX4ZjNclfku5TKFWWQRoCn7YkA0ywRM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707414320; c=relaxed/simple; bh=YPF3KZeT1iW0Zxlu8TaElEx33H3UrYM1lLyqtT3uA7o=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=foE0S1VaFsp0xVWd/Vd7JQdKKz1hivsDroURULci4l57GLRbwpzU/WigwSiSDGOCsC63dW34l5UeNLSqIkNV6CAdyyPsBePNoX1zN+Jl8EgUyrpvYwyAmtGClypz6zMoWgakuUUwjGV1MUbjw2wD/yPS3JvylCVyJjK8EYLMvT4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 418C4BA7029039; Thu, 8 Feb 2024 18:45:14 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s= selector1; bh=gf8pVdjIhHN5+FKGHscUk6iptxku3bcb2mTS+ftSM2Y=; b=wX jjfiF8yZ0LAttskzSHnpkSgLtgRHSDob1FD3eUMG8bcpX6ZPv0DlzsAw5U6HTUeQ pZ+I2mHlimyk+qDWjmm2wyNkd2L/UGPEFSeKoAn1MBemuMHxTJHM5Ctz4j8pzYfq KhCZeUPyc2cXtoboQ/M+PURee6IDW4GoqnlXwlLb0ebPznho25dWw2ZKrLCTW+5+ vJyM61q/DLI1G0N5ion4Pw+KwaSkUs81jI3L7x8+xIdetL/vTdHjkAXW/jztj+24 xrJNkr+KDLUEhAa8dZB5AH7e47Npb9RKZLA3wc8gz0JfPbvLUGKlDeWJ0tZd1paF P9U1J9V8IY082ZBq28ug== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3w1f63wp64-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 08 Feb 2024 18:45:14 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 88A45100051; Thu, 8 Feb 2024 18:45:13 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 5C99225225F; Thu, 8 Feb 2024 18:45:13 +0100 (CET) Received: from jkgcxl0004.jkg.st.com (10.74.22.255) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 8 Feb 2024 18:45:13 +0100 From: =?utf-8?q?Torbj=C3=B6rn_SVENSSON?= <torbjorn.svensson@foss.st.com> To: <gcc-patches@gcc.gnu.org> CC: <mikestump@comcast.net>, =?utf-8?q?Torbj=C3=B6rn_SVENSSON?= <torbjorn.svensson@foss.st.com> Subject: [PATCH v2] testsuite: Pattern does not match when using --specs=nano.specs Date: Thu, 8 Feb 2024 18:44:32 +0100 Message-ID: <20240208174431.833656-1-torbjorn.svensson@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <2E4E2779-D2ED-42CF-B6AC-69F72D52BF93@comcast.net> References: <2E4E2779-D2ED-42CF-B6AC-69F72D52BF93@comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.74.22.255] X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-08_07,2024-02-08_01,2023-05-22_02 X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790169664542180963 X-GMAIL-MSGID: 1790353714919436061 |
Series |
[v2] testsuite: Pattern does not match when using --specs=nano.specs
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Torbjorn SVENSSON
Feb. 8, 2024, 5:44 p.m. UTC
Changes since v1:
- Replaced .* with [^\r\n]* to avoid matching newline.
Ok for trunk and releases/gcc-13?
--
When running the testsuite for newlib nano, the --specs=nano.specs
option is used. This option prepends cpp_unique_options with
"-isystem =/include/newlib-nano" so that the newlib nano header files
override the newlib standard ones. As the -isystem option is prepended,
the -quiet option is no longer the first option to cc1. Adjust the test
accordingly.
Patch has been verified on Windows and Linux.
gcc/testsuite/ChangeLog:
* gcc.misc-tests/options.exp: Allow other options before the
-quite option for cc1.
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
---
gcc/testsuite/gcc.misc-tests/options.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Feb 8, 2024, at 9:44 AM, Torbjörn SVENSSON <torbjorn.svensson@foss.st.com> wrote: > > Changes since v1: > - Replaced .* with [^\r\n]* to avoid matching newline. > > Ok for trunk and releases/gcc-13? Ok.
On 2024-02-09 01:07, Mike Stump wrote: > On Feb 8, 2024, at 9:44 AM, Torbjörn SVENSSON <torbjorn.svensson@foss.st.com> wrote: >> >> Changes since v1: >> - Replaced .* with [^\r\n]* to avoid matching newline. >> >> Ok for trunk and releases/gcc-13? > > Ok. Pushed as 1175d1b35ce7bf8ee7c9b37b334370f01eb95335 and 810b0b3f75c454da3f6b5722870716796d2d7a83.
diff --git a/gcc/testsuite/gcc.misc-tests/options.exp b/gcc/testsuite/gcc.misc-tests/options.exp index ec026ecf77d..6e6e40c183d 100644 --- a/gcc/testsuite/gcc.misc-tests/options.exp +++ b/gcc/testsuite/gcc.misc-tests/options.exp @@ -57,7 +57,7 @@ proc check_for_all_options {language gcc_options compiler_pattern as_pattern ld_ remote_file build delete $dumpfile } - if {![regexp -- "/${compiler}(\\.exe)? -quiet.*$compiler_pattern" $gcc_output]} { + if {![regexp -- "/${compiler}(\\.exe)? \[^\r\n\]*-quiet.*$compiler_pattern" $gcc_output]} { fail "$test (compiler options)" return }