| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
| |
Other tests in this directory use this type, so it's probably copypasta from
there.
(test_buf only forwards to the superclass in all tests where it's used though,
so I wonder if it can be replaced with just using filebuf / wfilebuf
everywhere?)
llvm-svn: 210019
|
| |
|
|
|
|
|
| |
The XFAILs in r208840 were too general. They were meant to only apply
to testing when use_system_lib was set.
llvm-svn: 209972
|
| |
|
|
| |
llvm-svn: 209819
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
[syserr.errcat.objects]p4 specifies that
system_category().default_error_condition(ev) map to
error_condition(posv, generic_category()) if ev could map to a POSIX
errno.
Linux reserves up to and including 4095 for errno values, use this as a
bound.
This fixes syserr.errcat.objects/system_category.pass.cpp on Linux.
llvm-svn: 209795
|
| |
|
|
|
|
| |
libc++) to stop working. And tests
llvm-svn: 209785
|
| |
|
|
|
|
| |
Eric for the bug report
llvm-svn: 209520
|
| |
|
|
| |
llvm-svn: 209307
|
| |
|
|
| |
llvm-svn: 209305
|
| |
|
|
| |
llvm-svn: 208870
|
| |
|
|
| |
llvm-svn: 208869
|
| |
|
|
|
|
|
|
|
| |
When testing against the system library, there is a relatively minor
ABI breakage that the std::future_errc values have been changed to
avoid using zero. Update the tests that rely on the values being
consistent.
llvm-svn: 208840
|
| |
|
|
|
|
|
|
| |
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: 208319
|
| |
|
|
|
|
| |
were subtly invalid (didn't compare equal). Thanks to Erik Verbruggen for the report (and diagnosis)
llvm-svn: 208096
|
| |
|
|
| |
llvm-svn: 207307
|
| |
|
|
|
|
| |
#19547 was invalid, but we weren't testing that case
llvm-svn: 207232
|
| |
|
|
|
|
| |
18853 and 19118. Add a test case for that.
llvm-svn: 206829
|
| |
|
|
| |
llvm-svn: 206770
|
| |
|
|
|
|
| |
allocator, not construct one from scratch. Add a test to make sure
llvm-svn: 206623
|
| |
|
|
|
|
| |
see if they were supported in the language. This resulted in a warning when testing using C++03.
llvm-svn: 206482
|
| |
|
|
| |
llvm-svn: 205709
|
| |
|
|
|
|
|
|
|
|
| |
__[u]int128_t
This commit also adds tests for std::numeric_limits<__[u]int128_t>.
Reviewed in http://llvm-reviews.chandlerc.com/D2917
llvm-svn: 204849
|
| |
|
|
|
|
| |
#2135. No library changes here.
llvm-svn: 204777
|
| |
|
|
|
|
| |
from deferred functions. This is LWG issue #2186. No change to the library needed.
llvm-svn: 204678
|
| |
|
|
|
|
|
|
|
|
| |
This is as straightforward as it sounds, a renamed from shared_mutex to
shared_timed_mutex.
Note that libcxx .dylib and .so files built with c++14 support need to
be rebuilt.
llvm-svn: 204078
|
| |
|
|
|
|
| |
that this is a (small) behavior change in the library. Reverse iterators whose base iterators' operator* return references to 'within themselves' have been sacrificed to the greater goal of avoiding data races.
llvm-svn: 203587
|
| |
|
|
|
|
| |
STL. Add '#include <functional>' to four of the priority queue tests.
llvm-svn: 203584
|
| |
|
|
|
|
| |
libc++ already does the right thing here; I've just added tests to ensure that it stays this way.
llvm-svn: 203539
|
| |
|
|
|
|
| |
containers. Libc++ already does this, but now we have tests for it.
llvm-svn: 203494
|
| |
|
|
|
|
| |
containers. Still no changes to libc++
llvm-svn: 203480
|
| |
|
|
|
|
| |
iterators and allocator pointers with different const-character. No changes to libc++
llvm-svn: 203479
|
| |
|
|
|
|
| |
that anyone using quoted with padding is really confused, but it should work the way the rest of iostreams works.
llvm-svn: 203290
|
| |
|
|
| |
llvm-svn: 203126
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead, define explicit specializations for the basic types listed in
the SGI documentation. This solves two problems:
1) Helps avoid silent ODR violations caused by the absence of a
user-supplied __gnu_cxx::hash specialization in cases where a std::hash
specialization exists (e.g. for std::string).
2) __gnu_cxx::hash semantics are slightly different to those of
std::hash (for example, the former may dereference a pointer argument)
so it is inappropriate for __gnu_cxx::hash to receive std::hash
specializations by default.
Differential Revision: http://llvm-reviews.chandlerc.com/D2747
llvm-svn: 203070
|
| |
|
|
|
|
| |
explicit. Note that libc++ already did this for string/deque/forward_list/list/vector and the unordered containers; implement it for set/multiset/map/multimap. Add tests for all the containers. Two drive-by fixes as well: add a missing explicit in <deque>, and remove a tab that snuck into a container test. This issue is also LLVM bug 15724, and resolves it.
llvm-svn: 202994
|
| |
|
|
| |
llvm-svn: 202991
|
| |
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
modern versions of clang provide. Also mark LWG #2230 as complete - no code changes needed.
llvm-svn: 202934
|
| |
|
|
|
|
| |
for already existing move semantics. Mark LWG issues #2315 (no changes needed), 2316 (move semantics for weak_ptr), 2252 (previous commit) and 2271 (previous commit) as complete.
llvm-svn: 202931
|
| |
|
|
|
|
| |
libc++ already does the right thing; just update the tests.
llvm-svn: 202904
|
| |
|
|
|
|
| |
the library
llvm-svn: 202885
|
| |
|
|
|
|
| |
member function assign of std::basic_string.
llvm-svn: 202876
|
| |
|
|
|
|
| |
Differential Revision: http://llvm-reviews.chandlerc.com/D2811
llvm-svn: 202749
|
| |
|
|
|
|
| |
two new container classes to the test suite that overload operator &, and add test cases to the insert/front_insert/back_insert iterator tests that use these containers.
llvm-svn: 202741
|
| |
|
|
| |
llvm-svn: 202739
|
| |
|
|
|
|
| |
std::tuple_element_t<> as an alias for tuple_element<>::type. Clean up the synopsis for tuple_element in <utility> as well.
llvm-svn: 202673
|
| |
|
|
|
|
| |
and #2205 as complete; they are just wording changes in the standard. Mark issues #2359, #2320 and #2322 as complete - libc++ implements them already.
llvm-svn: 202671
|
| |
|
|
|
|
| |
#2339, and mark that as complete. No actual changes to the libc++ code; all of these were already in place.
llvm-svn: 202407
|