From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1814) id 6EDDB3858029; Wed, 5 Oct 2022 09:47:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6EDDB3858029 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664963231; bh=OWgtm6dU3DXU9cb7wO4zCVk3hbTBLPFx3fE4FKWQJsQ=; h=From:To:Subject:Date:From; b=pViN0BP1N3fDT9g5M3WcnBz34I3DM6/SCqZcS66PGbL1wOQzwCJEg7BntkLQFshbt 2dUZC38kIkyOdL5c+6HVyixQdmsNFwqGFfUWni8+JWPZaS1iDTdzkUleXS4NnF1Cum MuxcgLbe8pZ3Y6B4suEYFo1CL2pl2fU8WZzZye2k= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" From: Jonathan Yong To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-3080] testsuite: Windows reports errors with CreateProcess X-Act-Checkin: gcc X-Git-Author: =?utf-8?q?Torbj=C3=B6rn_SVENSSON?= X-Git-Refname: refs/heads/master X-Git-Oldrev: 5fe2e4f87e512407c5c560dfec2fe48ba099c807 X-Git-Newrev: fa8e3a055a082e38aeab2561a5016b01ebfd6ebd Message-Id: <20221005094711.6EDDB3858029@sourceware.org> Date: Wed, 5 Oct 2022 09:47:11 +0000 (GMT) List-Id: https://gcc.gnu.org/g:fa8e3a055a082e38aeab2561a5016b01ebfd6ebd commit r13-3080-gfa8e3a055a082e38aeab2561a5016b01ebfd6ebd Author: Torbjörn SVENSSON Date: Thu Sep 29 20:07:11 2022 +0200 testsuite: Windows reports errors with CreateProcess 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 Signed-off-by: Torbjörn SVENSSON Signed-off-by: Jonathan Yong <10walls@gmail.com> Diff: --- 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" }