public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* testsuite allocators patch
@ 2014-06-20 20:37 François Dumont
  2014-06-25 19:48 ` François Dumont
  0 siblings, 1 reply; 17+ messages in thread
From: François Dumont @ 2014-06-20 20:37 UTC (permalink / raw)
  To: libstdc++, gcc-patches

Hi

     I would like to finally propose this patch before the one on 
_Rb_tree, as a separate one.

     I have adopted the same evolution on the tracker_allocator with 
even a perfect forwarding constructor to allow its usage on top of the 
uneq_allocator  which take a personality parameter. Doing so I realized 
that move_assign_neg.cc tests were not accurate enough as they needed a 
non move propagating allocator and the uneq_allocator were not 
explicitly non propagating.

2014-06-21  François Dumont  <fdumont@gcc.gnu.org>

     * testsuite/util/testsuite_allocator.h
     (tracker_allocator_counter::allocate): Remove new invocation, only
     collect information.
     (tracker_allocator_counter::deallocate): Remove delete invocation, only
     collect information.
     (check_inconsistent_alloc_value_type): New.
     (tracker_allocator): Transform as a facade for any allocator type.
     (uneq_allocator): Likewise.
     (propagating_allocator): Likewise.
     * testsuite/23_containers/forward_list/debug/move_assign_neg.cc: Use an
     explicitly non propagating allocator.
     * testsuite/23_containers/map/debug/move_assign_neg.cc: Likewise.
     * testsuite/23_containers/multimap/debug/move_assign_neg.cc: likewise.
     * testsuite/23_containers/multiset/debug/move_assign_neg.cc: Likewise.
     * testsuite/23_containers/set/debug/move_assign_neg.cc: Likewise.
     * testsuite/23_containers/unordered_map/debug/move_assign_neg.cc:
     Likewise.
     * testsuite/23_containers/unordered_multimap/debug/move_assign_neg.cc:
     Likewise.
     * testsuite/23_containers/unordered_multiset/debug/move_assign_neg.cc:
     Likewise.
     * testsuite/23_containers/unordered_set/debug/move_assign_neg.cc:
     Likewise.
     * testsuite/23_containers/vector/debug/move_assign_neg.cc: Likewise.

Tested under Linux x86_64.

Ok to commit ?

François

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2014-07-29 21:39 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-20 20:37 testsuite allocators patch François Dumont
2014-06-25 19:48 ` François Dumont
2014-06-26 10:33   ` Jonathan Wakely
2014-06-26 20:45     ` François Dumont
2014-06-26 21:24       ` Paolo Carlini
2014-06-26 22:39         ` Jonathan Wakely
2014-06-27  7:30           ` Paolo Carlini
2014-06-27 17:33             ` Jonathan Wakely
2014-06-27 19:51               ` Paolo Carlini
2014-06-27 21:29                 ` François Dumont
2014-07-23 20:46                 ` François Dumont
2014-07-24  8:58                   ` Jonathan Wakely
2014-07-24 20:30                     ` François Dumont
2014-07-24 23:36                       ` Jonathan Wakely
2014-07-29 21:34                         ` Jonathan Wakely
2014-07-29 21:44                           ` Jonathan Wakely
2014-07-29 19:42                   ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).