llvm-project/libcxx/test
Dan Albert 19fd9039ca Fix _LIBCPP_HAS_ definitions for Android.
Summary:
Android added quick_exit()/at_quick_exit() in API level 21,
aligned_alloc() in API level 28, and timespec_get() in API level 29,
but has the other C11 features at all API levels (since they're basically
just coming from clang directly).

_LIBCPP_HAS_QUICK_EXIT and _LIBCPP_HAS_TIMESPEC_GET already existed,
so we can reuse them. (And use _LIBCPP_HAS_TIMESPEC_GET in a few more
places where _LIBCPP_HAS_C11_FEATURES has been used as a proxy. This
isn't correct for Android.)

_LIBCPP_HAS_ALIGNED_ALLOC is added, to cover aligned_alloc() (obviously).

Add a missing std:: before aligned_alloc in a cstdlib test, and remove a
couple of !defined(_WIN32)s now that we're explicitly testing
TEST_HAS_ALIGNED_ALLOC rather than TEST_HAS_C11_FEATURES.

Reviewers: danalbert, EricWF, mclow.lists

Reviewed By: danalbert

Subscribers: srhines, christof, libcxx-commits

Tags: #libc

Differential Revision: https://reviews.llvm.org/D69929
2019-11-18 12:19:58 -08:00
..
libcxx Rename __is_foo_iterator traits to reflect their Cpp17 nature. 2019-11-18 01:49:32 -05:00
pretty_printers Make libc++ gdb pretty printer Python 3 compatible 2019-10-04 04:47:33 +00:00
std Fix _LIBCPP_HAS_ definitions for Android. 2019-11-18 12:19:58 -08:00
support Fix _LIBCPP_HAS_ definitions for Android. 2019-11-18 12:19:58 -08:00
CMakeLists.txt Add an off-by-default option to enable testing for gdb pretty printers. 2019-10-04 22:15:28 +00:00
lit.cfg Move libcxx/test/libcxx python package into libcxx/utils/libcxx. 2017-02-09 23:18:11 +00:00
lit.site.cfg.in [libcxx] Codesign test executables if necessary 2019-09-05 21:24:23 +00:00
nothing_to_do.pass.cpp force the bots to cycle 2019-05-09 02:34:37 +00:00