This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Improve tests for vector and deque move-assignment


When I added is_always_equal the test allocators in these testcases
started inheriting it from their std::allocator base classes, so we
weren't testing that the exception specifications depended on the
propagate_on_container_move_assignment trait (they could have been
noexcept because of the inherited is_always_equal trait). Explicitly
set it to false instead, so we know the POCMA trait is being used.

The vector/52591.cc one also no longer tested the original problem in
PR 52591, because it didn't actually instantiate the move assignment
operator.

	* testsuite/23_containers/deque/allocator/move_assign-2.cc: Improve
	comment. Ensure first test works because allocator type propagates and
	not because is_always_equal is true.
	* testsuite/23_containers/vector/52591.cc: Likewise. Restore original
	testcase that instantiates the move-assignment operator.

Tested powerpc64le-linbux, committed to trunk.


Attachment: patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]