diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-06-15 01:44:22 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-06-15 01:44:22 +0000 |
commit | 5d3e09ecc102224bd346c8437735f9c98a8b29c2 (patch) | |
tree | 11819bafb5e1d3c77b624636ca92a6e43666d9b0 /libcxx/test/std/containers/sequences/vector | |
parent | 78f8ce484f8373a196ab729e00a045972d91d7f3 (diff) | |
download | bcm5719-llvm-5d3e09ecc102224bd346c8437735f9c98a8b29c2.tar.gz bcm5719-llvm-5d3e09ecc102224bd346c8437735f9c98a8b29c2.zip |
Improve portability of vector tests. Patch from STL@microsoft.com
llvm-svn: 272745
Diffstat (limited to 'libcxx/test/std/containers/sequences/vector')
-rw-r--r-- | libcxx/test/std/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/std/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp b/libcxx/test/std/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp index 021b87e2c64..10ce33f43bd 100644 --- a/libcxx/test/std/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp +++ b/libcxx/test/std/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp @@ -43,7 +43,7 @@ int main() v.push_back(1); assert(is_contiguous_container_asan_correct(v)); v.shrink_to_fit(); - assert(v.capacity() == 200); + LIBCPP_ASSERT(v.capacity() == 200); // assumes libc++'s 2x growth factor assert(v.size() == 101); assert(is_contiguous_container_asan_correct(v)); } |