]> gcc.gnu.org Git - gcc.git/commitdiff
testsuite: Windows reports errors with CreateProcess
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Thu, 29 Sep 2022 18:07:11 +0000 (20:07 +0200)
committerJonathan Yong <10walls@gmail.com>
Wed, 5 Oct 2022 09:46:35 +0000 (09:46 +0000)
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>
Signed-off-by: Jonathan Yong <10walls@gmail.com>
gcc/testsuite/g++.dg/modules/bad-mapper-1.C

index 6d0ed4b5895d000de461ac73600b0428e155ab17..4b2312885d82966b2f724e8aa05fd4ebe80fac06 100644 (file)
@@ -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" }
This page took 0.066531 seconds and 5 git commands to generate.