[libcxx] [test] Don't assert that moved-from containers with non-POCMA allocators...
authorBilly Robert O'Neal III <bion@microsoft.com>
Thu, 23 Jan 2020 05:15:16 +0000 (21:15 -0800)
committerBilly Robert O'Neal III <bion@microsoft.com>
Thu, 23 Jan 2020 05:15:16 +0000 (21:15 -0800)
libcxx/test/std/containers/associative/map/map.cons/move_assign.pass.cpp
libcxx/test/std/containers/associative/multimap/multimap.cons/move_assign.pass.cpp
libcxx/test/std/containers/associative/multiset/multiset.cons/move_assign.pass.cpp
libcxx/test/std/containers/associative/set/set.cons/move_assign.pass.cpp
libcxx/test/std/containers/sequences/vector.bool/assign_move.pass.cpp

index 56473da..9ce51ab 100644 (file)
@@ -103,7 +103,7 @@ int main(int, char**)
         assert(m3 == m2);
         assert(m3.get_allocator() == A(5));
         assert(m3.key_comp() == C(5));
-        assert(m1.empty());
+        LIBCPP_ASSERT(m1.empty());
     }
     {
         typedef std::pair<MoveOnly, MoveOnly> V;
index e536543..679ede8 100644 (file)
@@ -103,7 +103,7 @@ int main(int, char**)
         assert(m3 == m2);
         assert(m3.get_allocator() == A(5));
         assert(m3.key_comp() == C(5));
-        assert(m1.empty());
+        LIBCPP_ASSERT(m1.empty());
     }
     {
         typedef std::pair<MoveOnly, MoveOnly> V;
index fdae505..d526641 100644 (file)
@@ -101,7 +101,7 @@ int main(int, char**)
         assert(m3 == m2);
         assert(m3.get_allocator() == A(5));
         assert(m3.key_comp() == C(5));
-        assert(m1.empty());
+        LIBCPP_ASSERT(m1.empty());
     }
     {
         typedef MoveOnly V;
index ca61522..23e9fd4 100644 (file)
@@ -101,7 +101,7 @@ int main(int, char**)
         assert(m3 == m2);
         assert(m3.get_allocator() == A(5));
         assert(m3.key_comp() == C(5));
-        assert(m1.empty());
+        LIBCPP_ASSERT(m1.empty());
     }
     {
         typedef MoveOnly V;
index e1b6695..f273658 100644 (file)
@@ -31,7 +31,7 @@ int main(int, char**)
         std::vector<bool, test_allocator<bool> > l2(test_allocator<bool>(5));
         l2 = std::move(l);
         assert(l2 == lo);
-        assert(l.empty());
+        LIBCPP_ASSERT(l.empty());
         assert(l2.get_allocator() == lo.get_allocator());
     }
     {