| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
llvm-svn: 224658
|
|
|
|
|
|
| |
This lets us skip them as UNSUPPORTED on slow systems like QEMU
llvm-svn: 224032
|
|
|
|
| |
llvm-svn: 224024
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
Delay instantiation of `__numeric_type` within <cmath>,
don't instantiate it when the `is_arithmetic` conditions do not hold as it causes
errors with user-defined types with ambiguous conversions. Fixes PR21083.
llvm-svn: 219998
|
|
|
|
|
|
| |
that signed and unsigned verstions produce the same sequence.
llvm-svn: 217976
|
|
|
|
| |
llvm-svn: 217012
|
|
|
|
|
|
|
|
|
|
| |
This patch just adds the required return statements to slice_array::operator=
and mask_array::operator=.
Tests were added to check that the return value is the same as the object assigned
to.
llvm-svn: 215414
|
|
|
|
| |
llvm-svn: 215276
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These tests were marked as failing because the libc implementation does not
use the proper return type on certain math functions. There is other weirdness
that prevents us from defining our own version of these functions.
The failing tests in cmake were separated into their own files so that the rest
failures in the rest of the cmath tests were not hidden.
This was not done for the math.h test since we don't actually supply math.h
llvm-svn: 215275
|
|
|
|
|
|
|
|
|
|
| |
Make sure we appropriately retry calls to read if the return result is
less than what we asked for.
Additionally, check and handle IO errors: EINTR results in the read
operation getting restarted; other errors turn into exceptions.
llvm-svn: 210061
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
random_device::random_device(const string&) wrongly assumes that open
can only validly return a file descriptor greater than zero.
This results in random_device believing that it didn't successfully open
the device causing it to throw in it's constructor, this ends up leaking
a file descriptor.
The fix is simple, don't error on file descriptors which are zero.
llvm-svn: 210060
|
|
|
|
|
|
|
|
| |
These tests haven't been failing on darwin11 or 12 since r189610 when
pr17027 was fixed, but they've been keeping the libc++ bot red by
XPASSing since then.
llvm-svn: 208831
|
|
|
|
| |
llvm-svn: 203126
|
|
|
|
|
|
| |
should come from the C standard library. As a drive-by fix, update the tests to remove a warning from -Wabsolute-value
llvm-svn: 202990
|
|
|
|
|
|
| |
building with glibc. Need to find a better solution for PR18218.
llvm-svn: 198623
|
|
|
|
|
|
| |
the right thing. Fix the problems in PR18218 for isnan and pow - they also need to be applied to the other functions in <cmath>. Also, a drive-by fix for the test - now actually calls test_abs()
llvm-svn: 198431
|
|
|
|
| |
llvm-svn: 192048
|
|
|
|
| |
llvm-svn: 189043
|
|
|
|
|
|
| |
std::adjacent_difference. Fixed.
llvm-svn: 189036
|
|
|
|
| |
llvm-svn: 187906
|
|
|
|
| |
llvm-svn: 187529
|
|
|
|
|
|
| |
added.
llvm-svn: 182421
|
|
|
|
|
|
| |
binomial_distribution test. This eliminates the divide-by-zeros and describes in comments the numerical difficulties the test is having. Each of the problematic tests are exploring edge cases of the distribution.
llvm-svn: 177826
|
|
|
|
| |
llvm-svn: 177464
|
|
|
|
| |
llvm-svn: 177355
|
|
|
|
| |
llvm-svn: 174452
|
|
|
|
| |
llvm-svn: 172461
|
|
|
|
|
|
| |
-I to that directory; rename 'iterators.h' to 'iterator_test.h'; remove hard-coded paths to include files from more than 350 source files
llvm-svn: 171594
|
|
|
|
|
|
| |
for libc++
llvm-svn: 171479
|
|
|
|
|
|
| |
http://llvm.org/bugs/show_bug.cgi?id=14585.
llvm-svn: 170026
|
|
|
|
|
|
| |
http://llvm.org/bugs/show_bug.cgi?id=13874
llvm-svn: 164266
|
|
|
|
| |
llvm-svn: 160585
|
|
|
|
| |
llvm-svn: 153896
|
|
|
|
|
|
| |
addresses http://llvm.org/bugs/show_bug.cgi?id=12436.
llvm-svn: 153873
|
|
|
|
|
|
| |
not check to see if this is the last character in the stream and thus never set eofbit. This fixes http://llvm.org/bugs/show_bug.cgi?id=10817 . This fix requires a recompiled libc++.dylib to be fully implemented. The recompiled libc++.dylib is ABI compatible with that shipped on Lion.
llvm-svn: 138961
|
|
|
|
| |
llvm-svn: 137522
|
|
|
|
| |
llvm-svn: 131344
|
|
|
|
| |
llvm-svn: 131343
|
|
|
|
|
|
| |
hexfloat literal for use in some of the tests. <sigh> And cleaned up some harmless but irritating warnings in the tests.
llvm-svn: 131318
|
|
|
|
| |
llvm-svn: 129285
|
|
|
|
| |
llvm-svn: 119710
|
|
|
|
| |
llvm-svn: 119395
|
|
|
|
|
|
| |
flags, and renamed _LIBCPP_MOVE to _LIBCPP_HAS_NO_RVALUE_REFERENCES to be more consistent with the rest of the libc++'s flags, and with clang's nomenclature.
llvm-svn: 113086
|
|
|
|
| |
llvm-svn: 111762
|
|
|
|
| |
llvm-svn: 104946
|
|
|
|
| |
llvm-svn: 104719
|
|
|
|
|
|
| |
functional <random>! 489 tests over 48 sections are passing. :-) The only thing still on my plate in this area is to back-port some of this technology to random_shuffle/shuffle in <algorithm>. That will involve shuffling header bits around (<random> depepends on <algorithm>), but it won't entail that much development (compared to what has been required for <random>).
llvm-svn: 104575
|
|
|
|
|
|
| |
distributions
llvm-svn: 104224
|
|
|
|
| |
llvm-svn: 104103
|