* [PATCH] testsuite: Windows reports errors with CreateProcess
@ 2022-09-29 18:07 Torbjörn SVENSSON
2022-10-05 9:15 ` PING^1 " Torbjorn SVENSSON
0 siblings, 1 reply; 3+ messages in thread
From: Torbjörn SVENSSON @ 2022-09-29 18:07 UTC (permalink / raw)
To: gcc-patches
Cc: richard.sandiford, ro, mikestump, Torbjörn SVENSSON, Yvan ROUX
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" }
--
2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* PING^1 [PATCH] testsuite: Windows reports errors with CreateProcess
2022-09-29 18:07 [PATCH] testsuite: Windows reports errors with CreateProcess Torbjörn SVENSSON
@ 2022-10-05 9:15 ` Torbjorn SVENSSON
2022-10-05 9:48 ` Jonathan Yong
0 siblings, 1 reply; 3+ messages in thread
From: Torbjorn SVENSSON @ 2022-10-05 9:15 UTC (permalink / raw)
To: gcc-patches; +Cc: ro, mikestump, Yvan ROUX, richard.earnshaw
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" }
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PING^1 [PATCH] testsuite: Windows reports errors with CreateProcess
2022-10-05 9:15 ` PING^1 " Torbjorn SVENSSON
@ 2022-10-05 9:48 ` Jonathan Yong
0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Yong @ 2022-10-05 9:48 UTC (permalink / raw)
To: gcc-patches
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-10-05 9:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-29 18:07 [PATCH] testsuite: Windows reports errors with CreateProcess Torbjörn SVENSSON
2022-10-05 9:15 ` PING^1 " Torbjorn SVENSSON
2022-10-05 9:48 ` Jonathan Yong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).