]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PATCH] testsuite: Fix bad-mapper-1.C test failures with posix_spawn
authorBrendan Shanks <bshanks@codeweavers.com>
Mon, 13 Nov 2023 18:47:14 +0000 (11:47 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Mon, 13 Nov 2023 18:47:14 +0000 (11:47 -0700)
bad-mapper-1.C has been failing since the posix_spawn codepath was added
to libiberty, adjust the check to accept the changed error message.

Patch has been verified on x86_64 Linux.

gcc/testsuite:

* g++.dg/modules/bad-mapper-1.C: Also accept posix_spawn.

gcc/testsuite/g++.dg/modules/bad-mapper-1.C

index 4b2312885d82966b2f724e8aa05fd4ebe80fac06..53e3e1d0c88e1a8e765ca008dbfcf3bfda497faa 100644 (file)
@@ -1,6 +1,6 @@
 //  { dg-additional-options "-fmodules-ts -fmodule-mapper=|this-will-not-work" }
 import unique1.bob;
-// { dg-error "-:failed (exec|CreateProcess).*mapper.* .*this-will-not-work" "" { target { ! { *-*-darwin[89]* *-*-darwin10* } } } 0 }
+// { dg-error "-:failed (exec|CreateProcess|posix_spawn).*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" }