[libcxx-commits] [libcxx] [libc++][AIX] Adjust support of timespec_get test (PR #71827)

Jake Egan via libcxx-commits libcxx-commits at lists.llvm.org
Thu Nov 9 08:47:30 PST 2023


https://github.com/jakeegan created https://github.com/llvm/llvm-project/pull/71827

The function `timespec_get` is not available without an update to the time.h header in AIX 7.3 TL2 (7.3.2.*).

>From bf4085ad136484d4c2bc35ee9e54b1c23869c96f Mon Sep 17 00:00:00 2001
From: Jake Egan <5326451+jakeegan at users.noreply.github.com>
Date: Thu, 9 Nov 2023 11:42:15 -0500
Subject: [PATCH] [libc++][AIX] Adjust support of timespec_get test

---
 .../support.runtime/ctime.timespec.compile.pass.cpp          | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libcxx/test/std/language.support/support.runtime/ctime.timespec.compile.pass.cpp b/libcxx/test/std/language.support/support.runtime/ctime.timespec.compile.pass.cpp
index 9a512f6ccfbd32e..04c4c77edd5ed3d 100644
--- a/libcxx/test/std/language.support/support.runtime/ctime.timespec.compile.pass.cpp
+++ b/libcxx/test/std/language.support/support.runtime/ctime.timespec.compile.pass.cpp
@@ -11,8 +11,6 @@
 
 // UNSUPPORTED: c++03, c++11, c++14
 
-// XFAIL: LIBCXX-AIX-FIXME
-
 // ::timespec_get is provided by the C library, but it's marked as
 // unavailable until macOS 10.15
 // XFAIL: stdlib=apple-libc++ && target={{.+}}-apple-macosx10.{{9|10|11|12|13|14}}
@@ -20,6 +18,9 @@
 // ::timespec_get is available starting with Android Q (API 29)
 // XFAIL: target={{.+}}-android{{(eabi)?(21|22|23|24|25|26|27|28)}}
 
+// ::timespec_get is available starting with AIX 7.3 TL2
+// XFAIL: target={{.+}}-aix{{7.2.*|7.3.0.*|7.3.1.*}}
+
 #include <ctime>
 #include <type_traits>
 



More information about the libcxx-commits mailing list