Skip to content

Commit fa5db05

Browse files
[libc++][test] XFAIL for FreeBSD in thread_create_failure.pass.cpp (llvm#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.
1 parent 4a8412d commit fa5db05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
// There is no way to limit the number of threads on windows
1818
// UNSUPPORTED: windows
1919

20-
// AIX and macOS seem to limit the number of processes, not threads via RLIMIT_NPROC
20+
// AIX, FreeBSD, and macOS seem to limit the number of processes, not threads via RLIMIT_NPROC
2121
// XFAIL: target={{.+}}-aix{{.*}}
2222
// XFAIL: target={{.+}}-apple-{{.*}}
23+
// XFAIL: freebsd
2324

2425
// This test makes sure that we fail gracefully in care the thread creation fails. This is only reliably possible on
2526
// systems that allow limiting the number of threads that can be created. See https://llvm.org/PR125428 for more details

0 commit comments

Comments
 (0)