Message ID | 20220929180710.2235253-1-torbjorn.svensson@foss.st.com |
---|---|
State | Accepted, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp107033wrs; Thu, 29 Sep 2022 11:08:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4yZ6zGWwWUNLuti36umncohgoM7Ki5+gV1/HX2cF0pF2RMEMqYnFp2p0bz76SzZ83vWvEM X-Received: by 2002:a17:907:845:b0:731:2f6c:6dbd with SMTP id ww5-20020a170907084500b007312f6c6dbdmr3632748ejb.551.1664474906763; Thu, 29 Sep 2022 11:08:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664474906; cv=none; d=google.com; s=arc-20160816; b=Do9HB0/8tF2mHXHYUxFt0Phti4uya5BvQtroFY7jkYHpmJSuOp2pCDT4F/kd51ISvb kOcJwTqRaQV1LWszd95kCNW90WFsu6mZ53Y7SCLg7u9Y3mWVwj9dyfzuYR0jC0hZfVqW y8DtaDqfHA8cmZaDW6ELQxB+V9KPiXbkqv2ynH8CT/TyXLesWPm01KicLEyPDkxT00n8 K+Xein+FBWZ/BPaNUVsFGBpQIsoEEZsPcPL+2gUIwWDxuMwJJg0QIFRZ9+CY/6jBnEZF ADlZEoFtxXy81XXkQJGNtqB0hjskkDXmC3n1G3t2zo2z85WEnj1Jsf2BgE+k/efd/mIM dx5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=aekdDZr/74mYL0WmkxXCHQF+vjyLxLmJKAiRbTkTyyc=; b=b1BDk28xFM9JKqFbEb3EujDDr2eK+ONLwmOIo2zgr2lYXeOSKo9Dz/uOsougvT+gyM G5wJYnoK6zYo0vH39QOH0DNgWqdcIDsfLacS8Tht4U7W3r93ZHXUb5+HcdvWU4Fvij4c oMkBNW6G4vObk6sJPWFQMFKiu/2o18almnMdKhE5V1qHLbUoQKhHmAqgDK0T5xmpVC5P 6p9za9Aisp/0dJH44zBDYf8teJVG70PC0CvK/3zcn0LQM0NHhwkmS4Mm4EtkDeAh9ved CHIv5NzsGTt/hdDDiw4f8DvgYD8MRMOYuBQw/XMepErZa40uR7roRklK3elG8q9e1Cah RnFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=JzBqTKtp; 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 q5-20020a056402248500b004478e283f05si165524eda.104.2022.09.29.11.08.26 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 11:08:26 -0700 (PDT) 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=JzBqTKtp; 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 9207C385C40D for <ouuuleilei@gmail.com>; Thu, 29 Sep 2022 18:08:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9207C385C40D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664474905; bh=aekdDZr/74mYL0WmkxXCHQF+vjyLxLmJKAiRbTkTyyc=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=JzBqTKtpm3M2Cd7ju8wwOzIqO4BK2fnMR8vA6AaPUFvxn0E3wV2DXLButZGpQUK/o FIh6XzykZIx5TCupJn/50BWisQUjug1gG95aj/eNbXGlbPjJuxeF0+EUv6HM2PkGED 0p5BmIT7Z6q+SG8UoVpK2+QKq3UW5SdZwA+JvwpQ= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by sourceware.org (Postfix) with ESMTPS id 8ECF33857351 for <gcc-patches@gcc.gnu.org>; Thu, 29 Sep 2022 18:07:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8ECF33857351 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28TDpMDB004027; Thu, 29 Sep 2022 20:07:34 +0200 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 3jss82s3sv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Sep 2022 20:07:34 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 74CE710002A; Thu, 29 Sep 2022 20:07:33 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 509D5257AA4; Thu, 29 Sep 2022 20:07:33 +0200 (CEST) Received: from jkgcxl0002.jkg.st.com (10.75.127.45) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.31; Thu, 29 Sep 2022 20:07:30 +0200 To: <gcc-patches@gcc.gnu.org> Subject: [PATCH] testsuite: Windows reports errors with CreateProcess Date: Thu, 29 Sep 2022 20:07:11 +0200 Message-ID: <20220929180710.2235253-1-torbjorn.svensson@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-29_10,2022-09-29_03,2022-06-22_01 X-Spam-Status: No, score=-12.0 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 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 <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> From: =?utf-8?q?Torbj=C3=B6rn_SVENSSON_via_Gcc-patches?= <gcc-patches@gcc.gnu.org> Reply-To: =?utf-8?q?Torbj=C3=B6rn_SVENSSON?= <torbjorn.svensson@foss.st.com> Cc: richard.sandiford@arm.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1745328439897557523?= X-GMAIL-MSGID: =?utf-8?q?1745328439897557523?= |
Series |
testsuite: Windows reports errors with CreateProcess
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Torbjorn SVENSSON
Sept. 29, 2022, 6:07 p.m. UTC
When the mapper can't be executed, Windows report the error like:
.../bad-mapper-1.C: error: failed CreateProcess mapper 'this-will-not-work'
On Linux, the same error is reported this way:
.../bad-mapper-1.C: error: failed execvp mapper 'this-will-not-work'
This patch allows both output forms to be accepted.
Patch has been verified on Windows and Linux.
gcc/testsuite:
* g++.dg/modules/bad-mapper-1.C: Also accept CreateProcess.
Co-Authored-By: Yvan ROUX <yvan.roux@foss.st.com>
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
---
gcc/testsuite/g++.dg/modules/bad-mapper-1.C | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi, Ping, https://gcc.gnu.org/pipermail/gcc-patches/2022-September/602541.html Kind regards, Torbjörn On 2022-09-29 20:07, Torbjörn SVENSSON wrote: > When the mapper can't be executed, Windows report the error like: > .../bad-mapper-1.C: error: failed CreateProcess mapper 'this-will-not-work' > > On Linux, the same error is reported this way: > .../bad-mapper-1.C: error: failed execvp mapper 'this-will-not-work' > > This patch allows both output forms to be accepted. > > Patch has been verified on Windows and Linux. > > gcc/testsuite: > > * g++.dg/modules/bad-mapper-1.C: Also accept CreateProcess. > > Co-Authored-By: Yvan ROUX <yvan.roux@foss.st.com> > Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com> > --- > gcc/testsuite/g++.dg/modules/bad-mapper-1.C | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gcc/testsuite/g++.dg/modules/bad-mapper-1.C b/gcc/testsuite/g++.dg/modules/bad-mapper-1.C > index 6d0ed4b5895..4b2312885d8 100644 > --- a/gcc/testsuite/g++.dg/modules/bad-mapper-1.C > +++ b/gcc/testsuite/g++.dg/modules/bad-mapper-1.C > @@ -1,6 +1,6 @@ > // { dg-additional-options "-fmodules-ts -fmodule-mapper=|this-will-not-work" } > import unique1.bob; > -// { dg-error "-:failed exec.*mapper.* .*this-will-not-work" "" { target { ! { *-*-darwin[89]* *-*-darwin10* } } } 0 } > +// { dg-error "-:failed (exec|CreateProcess).*mapper.* .*this-will-not-work" "" { target { ! { *-*-darwin[89]* *-*-darwin10* } } } 0 } > // { dg-prune-output "fatal error:" } > // { dg-prune-output "failed to read" } > // { dg-prune-output "compilation terminated" }
On 10/5/22 09:15, Torbjorn SVENSSON via Gcc-patches wrote: > Hi, > > Ping, https://gcc.gnu.org/pipermail/gcc-patches/2022-September/602541.html > > Kind regards, > Torbjörn > Looks good to me, pushed to master branch as fa8e3a055a082e38aeab2561a5016b01ebfd6ebd.
diff --git a/gcc/testsuite/g++.dg/modules/bad-mapper-1.C b/gcc/testsuite/g++.dg/modules/bad-mapper-1.C index 6d0ed4b5895..4b2312885d8 100644 --- a/gcc/testsuite/g++.dg/modules/bad-mapper-1.C +++ b/gcc/testsuite/g++.dg/modules/bad-mapper-1.C @@ -1,6 +1,6 @@ // { dg-additional-options "-fmodules-ts -fmodule-mapper=|this-will-not-work" } import unique1.bob; -// { dg-error "-:failed exec.*mapper.* .*this-will-not-work" "" { target { ! { *-*-darwin[89]* *-*-darwin10* } } } 0 } +// { dg-error "-:failed (exec|CreateProcess).*mapper.* .*this-will-not-work" "" { target { ! { *-*-darwin[89]* *-*-darwin10* } } } 0 } // { dg-prune-output "fatal error:" } // { dg-prune-output "failed to read" } // { dg-prune-output "compilation terminated" }