From c58cd282794018a883ad899fdda4e05046f9e060 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 19 Jan 2023 14:09:15 +0100 Subject: [PATCH] test: cond-skip fork_threadpool_queue_work_simple Skip the test when ThreadSanitizer is active because the latter doesn't support forking in multi-threaded processes. Refs: https://github.com/libuv/libuv/issues/3681 --- test/test-fork.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test-fork.c b/test/test-fork.c index 9e4684f0..0cb04423 100644 --- a/test/test-fork.c +++ b/test/test-fork.c @@ -646,6 +646,10 @@ TEST_IMPL(fork_threadpool_queue_work_simple) { pid_t child_pid; uv_loop_t loop; +#ifdef __TSAN__ + RETURN_SKIP("ThreadSanitizer doesn't support multi-threaded fork"); +#endif + /* Prime the pool and default loop. */ assert_run_work(uv_default_loop());