[libcxx-commits] [libcxx] [libc++][z/OS] XFAIL thread_create_failure.pass.cpp on z/OS (PR #147520)

Zibi Sarbinowski via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 8 06:22:35 PDT 2025


https://github.com/zibi2 created https://github.com/llvm/llvm-project/pull/147520

Number of threads on z/OS are controlled at the system level and thus we need to XFAIL this test.

>From 59959b6dfa08828fb1e09f009c7ec6a9b426e85d Mon Sep 17 00:00:00 2001
From: Zibi Sarbinowski <zibi at ca.ibm.com>
Date: Tue, 8 Jul 2025 13:16:20 +0000
Subject: [PATCH] XFAIL thread_create_failure.pass.cpp on z/OS

---
 .../futures/futures.async/thread_create_failure.pass.cpp       | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libcxx/test/std/thread/futures/futures.async/thread_create_failure.pass.cpp b/libcxx/test/std/thread/futures/futures.async/thread_create_failure.pass.cpp
index 9ac54a8738662..4e087fd4226d1 100644
--- a/libcxx/test/std/thread/futures/futures.async/thread_create_failure.pass.cpp
+++ b/libcxx/test/std/thread/futures/futures.async/thread_create_failure.pass.cpp
@@ -21,6 +21,9 @@
 // XFAIL: target={{.+}}-apple-{{.*}}
 // XFAIL: freebsd
 
+// z/OS does not have mechanism to limit the number of threads
+// XFAIL: target={{.+}}-zos{{.*}}
+
 // This test makes sure that we fail gracefully in care the thread creation fails. This is only reliably possible on
 // systems that allow limiting the number of threads that can be created. See https://llvm.org/PR125428 for more details
 



More information about the libcxx-commits mailing list