aports/main/m4/test-posix_spawn_file_actions_addclose.patch
Natanael Copa acf0a998a1 main/m4: disable invalid test
musl 1.2.3 fails with a test that expects behavior that is non-manadtory
in POSIX. Disable the test.
2022-04-11 12:30:52 +02:00

18 lines
649 B
Diff

diff --git a/tests/test-posix_spawn_file_actions_addclose.c b/tests/test-posix_spawn_file_actions_addclose.c
index 2c910ea..b228a7d 100644
--- a/tests/test-posix_spawn_file_actions_addclose.c
+++ b/tests/test-posix_spawn_file_actions_addclose.c
@@ -54,13 +54,6 @@ main (void)
errno = 0;
ASSERT (posix_spawn_file_actions_addclose (&actions, -1) == EBADF);
}
- /* This behaviour is not mandated by POSIX, but happens to pass on all
- platforms. */
- {
- int bad_fd = big_fd ();
- errno = 0;
- ASSERT (posix_spawn_file_actions_addclose (&actions, bad_fd) == EBADF);
- }
posix_spawn_file_actions_destroy (&actions);