gcc/libstdc++-v3/testsuite/23_containers
François Dumont 2aa8ebc0a6 libstdc++: Fix tests relying on operator new/delete overload
Fix tests that are checking for an expected allocation plan. They are failing if
an allocation is taking place outside the test main.

libstdc++-v3/ChangeLog

	* testsuite/util/replacement_memory_operators.h
	(counter::scope): New, capture and reset counter count at construction and
	restore it at destruction.
	(counter::check_new): Add scope instantiation.
	* testsuite/23_containers/unordered_map/96088.cc (main):
	Add counter::scope instantiation.
	* testsuite/23_containers/unordered_multimap/96088.cc (main): Likewise.
	* testsuite/23_containers/unordered_multiset/96088.cc (main): Likewise.
	* testsuite/23_containers/unordered_set/96088.cc (main): Likewise.
	* testsuite/ext/malloc_allocator/deallocate_local.cc (main): Likewise.
	* testsuite/ext/new_allocator/deallocate_local.cc (main): Likewise.
	* testsuite/ext/throw_allocator/deallocate_local.cc (main): Likewise.
	* testsuite/ext/pool_allocator/allocate_chunk.cc (started): New global.
	(operator new(size_t)): Check started.
	(main): Set/Unset started.
	* testsuite/17_intro/no_library_allocation.cc: New test case.
2023-08-23 06:35:24 +02:00
..
array libstdc++: Replace all manual FTM definitions and use 2023-08-16 15:16:25 +02:00
deque libstdc++: Improve tests for emplace member of sequence containers 2023-06-09 09:55:42 +01:00
forward_list libstdc++: Disable std::forward_list tests for C++98 mode 2023-07-05 07:39:04 +01:00
headers Update copyright years. 2023-01-16 11:52:17 +01:00
list libstdc++: Improve tests for emplace member of sequence containers 2023-06-09 09:55:42 +01:00
map libstdc++: Use dg-bogus in new test [PR108554] 2023-01-27 15:33:00 +00:00
multimap Update copyright years. 2023-01-16 11:52:17 +01:00
multiset Update copyright years. 2023-01-16 11:52:17 +01:00
priority_queue Update copyright years. 2023-01-16 11:52:17 +01:00
queue Update copyright years. 2023-01-16 11:52:17 +01:00
set Update copyright years. 2023-01-16 11:52:17 +01:00
span c++: explicit ctor and list-initialization [PR109159] 2023-03-20 16:54:11 -04:00
stack Update copyright years. 2023-01-16 11:52:17 +01:00
unordered_map libstdc++: Fix tests relying on operator new/delete overload 2023-08-23 06:35:24 +02:00
unordered_multimap libstdc++: Fix tests relying on operator new/delete overload 2023-08-23 06:35:24 +02:00
unordered_multiset libstdc++: Fix tests relying on operator new/delete overload 2023-08-23 06:35:24 +02:00
unordered_set libstdc++: Fix tests relying on operator new/delete overload 2023-08-23 06:35:24 +02:00
vector libstdc++: Require C++11 for 23_containers/vector/bool/110807.cc [PR110807] 2023-07-26 19:10:11 +01:00