cxx/test
JF Bastien 2bd5ffd330 libc++: add NaCl and PNaCl support for std::random_device
Summary:
The NaCl sandbox doesn't allow opening files under /dev, but it offers an API which provides the same capabilities. This is the same random device emulation that nacl_io performs for POSIX support, but nacl_io is an optional library so libc++ can't assume that device emulation will be performed. Note that NaCl only supports /dev/urandom, not /dev/random.

This patch also cleans up some of the preprocessor #endif, and fixes the test for Win32 (it accepts any token, and would therefore never throw regardless of the token provided).

Test Plan: ninja check-libcxx

Reviewers: dschuff, mclow.lists, danalbert

Subscribers: jfb, cfe-commits

Differential Revision: http://reviews.llvm.org/D6442

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@223068 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-01 19:19:55 +00:00
..
algorithms Fix the tests I broke with the last commit. Sorry for the noise 2014-11-17 19:16:57 +00:00
atomics Test that the single-threaded lit feature is available iff the corresponding guard is #defined 2014-10-27 22:39:19 +00:00
containers Added vector<T>::insert tests suggested by code coverage results 2014-11-11 16:44:05 +00:00
depr Remove tests that va_copy is not defined when C++ < 11. 2014-11-20 03:39:25 +00:00
diagnostics Linux: Correctly identify valid error codes 2014-05-29 05:02:22 +00:00
experimental Replaced checking in string_view::remove_suffix/remove_prefix by _LIBCPP_ASSERT, since this is technically undefined behavior. Fixes PR#21496 2014-11-11 22:07:10 +00:00
extensions Do not derive __gnu_cxx::hash<T> from std::hash<T>. 2014-03-06 04:11:10 +00:00
input.output Add more REQUIRES: LOCALE.* to tests. 2014-11-21 01:23:04 +00:00
iterators Implement N4280 - 'Non-member size() and more' 2014-11-19 19:43:23 +00:00
language.support libc++: integral types trap on PNaCl 2014-11-26 17:51:58 +00:00
localization Mark some locale tests as XFAIL on debian and opensuse. 2014-11-21 08:02:38 +00:00
numerics libc++: add NaCl and PNaCl support for std::random_device 2014-12-01 19:19:55 +00:00
re Add more REQUIRES: LOCALE.* to tests. 2014-11-21 01:23:04 +00:00
strings Split string capacity test into two parts and mark one part as UNSUPPORTED when using sanitizers. 2014-11-14 03:16:12 +00:00
support Since Eric poisoned the comma operator on all our test iterators, we no longer need 'comma_iterator'. Remove it from the test suite. 2014-11-18 16:15:00 +00:00
thread Split thread test into two parts. Mark one as XFAIL with ASAN. 2014-11-15 01:58:45 +00:00
utilities Flush out test cases for tuples constructor SFINAE 2014-11-18 23:01:57 +00:00
CMakeLists.txt [libcxx] Add --show-unsupported and --show-xfail to check-libcxx's default LIT args. 2014-08-23 04:33:20 +00:00
lit.cfg Use lit.util.executeCommand instead of our own version 2014-11-25 03:03:32 +00:00
lit.site.cfg.in [libcxx] Redo adding support for building and testing with an ABI library not along linker paths 2014-10-19 00:42:41 +00:00
nothing_to_do.pass.cpp Test commit: Reverting whitespace changes 2014-07-17 05:10:03 +00:00
testit Apply patch for Albert Wong: 'Modify testit to allow filtering tests by prefixes'. 2014-01-15 16:28:42 +00:00