From: Brendan Shanks Date: Mon, 13 Nov 2023 18:47:14 +0000 (-0700) Subject: [PATCH] testsuite: Fix bad-mapper-1.C test failures with posix_spawn X-Git-Tag: basepoints/gcc-15~4721 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=97e9cde758582cdb97e3af47df6f32a8413f291f;p=thirdparty%2Fgcc.git [PATCH] testsuite: Fix bad-mapper-1.C test failures with posix_spawn 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. --- diff --git a/gcc/testsuite/g++.dg/modules/bad-mapper-1.C b/gcc/testsuite/g++.dg/modules/bad-mapper-1.C index 4b2312885d82..53e3e1d0c88e 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|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" }