llvm-project/libcxx/test/numerics
JF Bastien 57148cbcbd 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

llvm-svn: 223068
2014-12-01 19:19:55 +00:00
..
c.math [libcxx] Fix SFINAE in <cmath>. Patch from K-Ballo. 2014-10-17 00:31:47 +00:00
cfenv license change 2010-11-16 22:09:02 +00:00
complex.number Remove XFAIL from a number of tests that aren't expected to fail 2014-05-15 00:55:44 +00:00
numarray Fix buffer overflow issue in valarray test 2014-09-03 05:47:35 +00:00
numeric.ops Zhihao Yuan noted that a move assignment operation was missing from std::adjacent_difference. Fixed. 2013-08-22 18:02:34 +00:00
numeric.requirements license change 2010-11-16 22:09:02 +00:00
numerics.general license change 2010-11-16 22:09:02 +00:00
rand libc++: add NaCl and PNaCl support for std::random_device 2014-12-01 19:19:55 +00:00
nothing_to_do.pass.cpp license change 2010-11-16 22:09:02 +00:00