[libcxx-commits] [libcxx] 2b83d6a - [libc++] Mark xopen_source test unsupported on OpenBSD (#233710)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Oct 20 03:36:00 PDT 2026
Author: Brad Smith
Date: 2026-10-20T06:35:54-04:00
New Revision: 2b83d6a4ef40f9aec3fc7c6a59129ea0875f462d
URL: https://github.com/llvm/llvm-project/commit/2b83d6a4ef40f9aec3fc7c6a59129ea0875f462d
DIFF: https://github.com/llvm/llvm-project/commit/2b83d6a4ef40f9aec3fc7c6a59129ea0875f462d.diff
LOG: [libc++] Mark xopen_source test unsupported on OpenBSD (#233710)
OpenBSD's headers strictly honor _XOPEN_SOURCE. With 500 and 600 the
POSIX.1-2008 locale API (locale_t, uselocale(), LC_*_MASK) is hidden,
and with any value below 800 asprintf() is hidden since it is only
exposed for POSIX.1-2024 or the BSD namespace. libc++'s OpenBSD locale
support relies on these from public headers, so every generated test
fails.
Mark the test unsupported on OpenBSD targets, as is already done for
FreeBSD.
Added:
Modified:
libcxx/test/extensions/posix/xopen_source.gen.py
Removed:
################################################################################
diff --git a/libcxx/test/extensions/posix/xopen_source.gen.py b/libcxx/test/extensions/posix/xopen_source.gen.py
index bd14e691de5af1..fc75215c6ca13e 100644
--- a/libcxx/test/extensions/posix/xopen_source.gen.py
+++ b/libcxx/test/extensions/posix/xopen_source.gen.py
@@ -17,6 +17,12 @@
# additions to provide a conforming library at all.
# UNSUPPORTED: freebsd
+# OpenBSD's <sys/cdefs.h> honors _XOPEN_SOURCE strictly: 500 and 600 hide the POSIX.1-2008
+# locale API (locale_t, uselocale(), LC_*_MASK), and every value below 800 hides asprintf(),
+# which is only exposed for POSIX.1-2024 or __BSD_VISIBLE. libc++'s locale support needs all
+# of these from its public headers (e.g. money_put uses __locale::__asprintf).
+# UNSUPPORTED: target={{.+}}-openbsd{{.*}}
+
# RUN: %{python} %s %{libcxx-dir}/utils
# END.
More information about the libcxx-commits
mailing list