zos: skip fork_threadpool_queue_work_simple

z/OS does not allow a child process to create threads if it was
forked from a multi-threaded parent.

PR-URL: https://github.com/libuv/libuv/pull/1596
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
This commit is contained in:
John Barboza 2017-10-12 20:58:22 -04:00 committed by Santiago Gimeno
parent 44b7c71035
commit f2214561f3
No known key found for this signature in database
GPG Key ID: F28C3C8DA33C03BE
2 changed files with 6 additions and 0 deletions

View File

@ -636,6 +636,7 @@ static void assert_run_work(uv_loop_t* const loop) {
}
#ifndef __MVS__
TEST_IMPL(fork_threadpool_queue_work_simple) {
/* The threadpool works in a child process. */
@ -672,6 +673,7 @@ TEST_IMPL(fork_threadpool_queue_work_simple) {
MAKE_VALGRIND_HAPPY();
return 0;
}
#endif /* !__MVS__ */
#endif /* !_WIN32 */

View File

@ -401,8 +401,10 @@ TEST_DECLARE (fork_signal_to_child_closed)
TEST_DECLARE (fork_fs_events_child)
TEST_DECLARE (fork_fs_events_child_dir)
TEST_DECLARE (fork_fs_events_file_parent_child)
#ifndef __MVS__
TEST_DECLARE (fork_threadpool_queue_work_simple)
#endif
#endif
TASK_LIST_START
TEST_ENTRY_CUSTOM (platform_output, 0, 1, 5000)
@ -867,8 +869,10 @@ TASK_LIST_START
TEST_ENTRY (fork_fs_events_child)
TEST_ENTRY (fork_fs_events_child_dir)
TEST_ENTRY (fork_fs_events_file_parent_child)
#ifndef __MVS__
TEST_ENTRY (fork_threadpool_queue_work_simple)
#endif
#endif
#if 0
/* These are for testing the test runner. */