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.
Signed-off-by: Brendan Shanks
Polite ping on this.
> On Oct 4, 2023, at 11:28 AM, Brendan Shanks wrote:
>
> Hi,
>
> This patch implements pex_unix_exec_child using posix_spawn when
> available.
>
> This should especially benefit recent macOS (where vfork just calls
> fork), but should have equiv
ned-off-by: Brendan Shanks
---
libiberty/configure.ac | 8 +-
libiberty/pex-unix.c | 168 +
2 files changed, 173 insertions(+), 3 deletions(-)
diff --git a/libiberty/configure.ac b/libiberty/configure.ac
index 0748c592704..2488b031bc8 100644
--- a
pawnp.
(AC_CHECK_FUNCS): Add posix_spawn, posix_spawnp.
* configure, config.in: Rebuild.
* pex-unix.c [HAVE_POSIX_SPAWN] (pex_unix_exec_child): New function.
Signed-off-by: Brendan Shanks
---
libiberty/configure.ac | 8 ++--
libiberty/pex-unix.c
] (pex_unix_exec_child): New function.
Signed-off-by: Brendan Shanks
---
libiberty/configure.ac | 8 +++--
libiberty/pex-unix.c | 72 ++
2 files changed, 77 insertions(+), 3 deletions(-)
diff --git a/libiberty/configure.ac b/libiberty/configure.ac
index