Skip to content

Commit cdde270

Browse files
committed
[libc++][Android] XFAIL aligned_alloc and timespec_get tests
Mark tests XFAIL that use APIs that are unsupported on old versions of Android: - aligned_alloc isn't available until API 28. - timespec_get isn't available until API 29. Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D137134
1 parent ea64e66 commit cdde270

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

libcxx/test/std/depr/depr.c.headers/stdlib_h.aligned_alloc.compile.pass.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
// ::aligned_alloc is not implemented on Windows
1919
// XFAIL: target={{.+}}-windows-{{.+}}
2020

21+
// ::aligned_alloc is available starting with Android P (API 28)
22+
// XFAIL: target={{.+}}-android{{(eabi)?(21|22|23|24|25|26|27)}}
23+
2124
#include <stdlib.h>
2225
#include <type_traits>
2326

libcxx/test/std/language.support/support.runtime/cstdlib.aligned_alloc.compile.pass.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
// ::aligned_alloc is not implemented on Windows
1919
// XFAIL: target={{.+}}-windows-{{.+}}
2020

21+
// ::aligned_alloc is available starting with Android P (API 28)
22+
// XFAIL: target={{.+}}-android{{(eabi)?(21|22|23|24|25|26|27)}}
23+
2124
#include <cstdlib>
2225
#include <type_traits>
2326

libcxx/test/std/language.support/support.runtime/ctime.timespec.compile.pass.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
// unavailable until macOS 10.15
1818
// XFAIL: use_system_cxx_lib && target={{.+}}-apple-macosx10.{{9|10|11|12|13|14}}
1919

20+
// ::timespec_get is available starting with Android Q (API 29)
21+
// XFAIL: target={{.+}}-android{{(eabi)?(21|22|23|24|25|26|27|28)}}
22+
2023
#include <ctime>
2124
#include <type_traits>
2225

0 commit comments

Comments
 (0)