[libcxx-commits] [libcxx] fa5db05 - [libc++][test] XFAIL for FreeBSD in thread_create_failure.pass.cpp (#129413)

via libcxx-commits libcxx-commits at lists.llvm.org
Sun Mar 2 02:35:25 PST 2025


Author: A. Jiang
Date: 2025-03-02T11:35:22+01:00
New Revision: fa5db05ca36a732bffb8128ff017c575ec6e1201

URL: https://github.com/llvm/llvm-project/commit/fa5db05ca36a732bffb8128ff017c575ec6e1201
DIFF: https://github.com/llvm/llvm-project/commit/fa5db05ca36a732bffb8128ff017c575ec6e1201.diff

LOG: [libc++][test] XFAIL for FreeBSD in thread_create_failure.pass.cpp (#129413)

Per https://man.freebsd.org/cgi/man.cgi?query=setrlimit, FreeBSD's
`setrlimit` seems to limit the number of processes, not threads via
`RLIMIT_NPROC`. So this test should be XFAIL for FreeBSD.

Added: 
    

Modified: 
    libcxx/test/std/thread/futures/futures.async/thread_create_failure.pass.cpp

Removed: 
    


################################################################################
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 0d0c63058d656..d4f7cb771781c 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
@@ -17,9 +17,10 @@
 // There is no way to limit the number of threads on windows
 // UNSUPPORTED: windows
 
-// AIX and macOS seem to limit the number of processes, not threads via RLIMIT_NPROC
+// AIX, FreeBSD, and macOS seem to limit the number of processes, not threads via RLIMIT_NPROC
 // XFAIL: target={{.+}}-aix{{.*}}
 // XFAIL: target={{.+}}-apple-{{.*}}
+// XFAIL: freebsd
 
 // 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