[libcxx-commits] [libcxx] c040f77 - [libcxx][FreeBSD] Add comments for unsupported xopen_source.gen.py test (#216002)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Aug 23 22:15:35 PDT 2026
Author: aokblast
Date: 2026-08-24T13:15:29+08:00
New Revision: c040f77536e68a68feb37008321512e2d3b400ef
URL: https://github.com/llvm/llvm-project/commit/c040f77536e68a68feb37008321512e2d3b400ef
DIFF: https://github.com/llvm/llvm-project/commit/c040f77536e68a68feb37008321512e2d3b400ef.diff
LOG: [libcxx][FreeBSD] Add comments for unsupported xopen_source.gen.py test (#216002)
FreeBSD _XOPEN_SOURCE == 500 does not satisfy some requirements in
libcxx. As a result, tests fail when trying to find the declarations of
these functions.
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 99e0b0b7c7d1f..ac04e38bde38a 100644
--- a/libcxx/test/extensions/posix/xopen_source.gen.py
+++ b/libcxx/test/extensions/posix/xopen_source.gen.py
@@ -16,8 +16,10 @@
# recent value of _XOPEN_SOURCE.
# UNSUPPORTED: LIBCXX-AIX-FIXME
-# This test fails on FreeBSD for an unknown reason.
-# UNSUPPORTED: LIBCXX-FREEBSD-FIXME
+# FreeBSD maps _XOPEN_SOURCE=500 to __ISO_C_VISIBLE=1990 (see <sys/_visible.h>), which hides
+# everything C99 added to the C library, even in C++ mode. libc++ needs some of those
+# additions to provide a conforming library at all.
+# UNSUPPORTED: freebsd
# RUN: %{python} %s %{libcxx-dir}/utils
# END.
More information about the libcxx-commits
mailing list