From f2214561f30c26f6c9a69b8b87eb121e59536424 Mon Sep 17 00:00:00 2001 From: John Barboza Date: Thu, 12 Oct 2017 20:58:22 -0400 Subject: [PATCH] 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 Reviewed-By: Colin Ihrig Reviewed-By: Santiago Gimeno --- test/test-fork.c | 2 ++ test/test-list.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/test/test-fork.c b/test/test-fork.c index 3716a3ad..ba85b531 100644 --- a/test/test-fork.c +++ b/test/test-fork.c @@ -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 */ diff --git a/test/test-list.h b/test/test-list.h index 59d45568..80f01ea8 100644 --- a/test/test-list.h +++ b/test/test-list.h @@ -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. */