aboutsummaryrefslogtreecommitdiffstats
path: root/main/m4/test-posix_spawn_file_actions_addclose.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/m4/test-posix_spawn_file_actions_addclose.patch')
-rw-r--r--main/m4/test-posix_spawn_file_actions_addclose.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/main/m4/test-posix_spawn_file_actions_addclose.patch b/main/m4/test-posix_spawn_file_actions_addclose.patch
new file mode 100644
index 00000000000..079424a2436
--- /dev/null
+++ b/main/m4/test-posix_spawn_file_actions_addclose.patch
@@ -0,0 +1,18 @@
+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);
+