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

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Nov 9 08:48:05 PST 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: Jake Egan (jakeegan)

<details>
<summary>Changes</summary>

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

---
Full diff: https://github.com/llvm/llvm-project/pull/71827.diff


1 Files Affected:

- (modified) libcxx/test/std/language.support/support.runtime/ctime.timespec.compile.pass.cpp (+3-2) 


``````````diff
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>
 

``````````

</details>


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


More information about the libcxx-commits mailing list