m4 1.4.19 with musl libc 1.2.3 fails test-posix_spawn_file_actions_addclose

Natanael Copa <[email protected]> Mon, 11 Apr 2022 12:15:47 +0200
Newsgroups gmane.comp.gnu.m4.bugs
Message-ID <[email protected]>
ncopa-desktop:~/aports/main/m4/src/m4-1.4.19 (master)$ cat tests/test-suite.log 
=========================================
   GNU M4 1.4.19: tests/test-suite.log
=========================================

# TOTAL: 267
# PASS:  235
# SKIP:  31
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

...

FAIL: test-posix_spawn_file_actions_addclose
============================================

test-posix_spawn_file_actions_addclose.c:62: assertion 'posix_spawn_file_actions_addclose (&actions, bad_fd) == EBADF' failed
Aborted
FAIL test-posix_spawn_file_actions_addclose (exit status: 134)

Seems like the test assumes behavior that is not mandatory in POSIX, so technically, the test is wrong.

-nc