summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/thread/futures
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-04-13 00:34:24 +0000
committerEric Fiselier <eric@efcs.ca>2017-04-13 00:34:24 +0000
commite1ec29869b946bda518f91ffa6aaed664028c888 (patch)
treef4a39e18c986cf9990acd3b78ba3593c3786ef5b /libcxx/test/std/thread/futures
parent3233d3eb460b5d4e98e5049ec5f3dfe63b11d234 (diff)
downloadbcm5719-llvm-e1ec29869b946bda518f91ffa6aaed664028c888.tar.gz
bcm5719-llvm-e1ec29869b946bda518f91ffa6aaed664028c888.zip
Fix most failures caused by r300140
r300140 introduced a bunch of failures by changing the internal interface provided by __compressed_pair. This patch fixes all of the failures caused by the new interface by changing the existing code to use it. In addition to those changes this patch also fixes two separate issues causing test failures: 1) Fix the member swap definition for __map_value_compare. Previously the swap was incorrectly configured to swap the comparator as const. 2) Fix an assertion failure in futures.task.members/ctor_func_alloc.pass.cpp that incorrectly expected a move to take place when a single copy is sufficient. There is one remaining failure regarding make_shared. I'll commit a fix for that shortly. llvm-svn: 300148
Diffstat (limited to 'libcxx/test/std/thread/futures')
-rw-r--r--libcxx/test/std/thread/futures/futures.task/futures.task.members/ctor_func_alloc.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/std/thread/futures/futures.task/futures.task.members/ctor_func_alloc.pass.cpp b/libcxx/test/std/thread/futures/futures.task/futures.task.members/ctor_func_alloc.pass.cpp
index 39784876b8c..7cac21d48ae 100644
--- a/libcxx/test/std/thread/futures/futures.task/futures.task.members/ctor_func_alloc.pass.cpp
+++ b/libcxx/test/std/thread/futures/futures.task/futures.task.members/ctor_func_alloc.pass.cpp
@@ -69,7 +69,7 @@ int main()
p(3, 'a');
assert(f.get() == 105.0);
assert(A::n_copies > 0);
- assert(A::n_moves > 0);
+ assert(A::n_moves >= 0);
}
assert(test_alloc_base::alloc_count == 0);
A::n_copies = 0;
OpenPOWER on IntegriCloud