gcc/libstdc++-v3/testsuite/17_intro
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
..
headers Update copyright years. 2023-01-16 11:52:17 +01:00
badnames.cc Update copyright years. 2023-01-16 11:52:17 +01:00
freestanding.cc Update copyright years. 2023-01-16 11:52:17 +01:00
names.cc libstdc++: Fix some AIX test failures 2023-04-12 23:25:17 +01:00
names_pstl.cc libstdc++: Make names_pstl.cc require et tbb_backend 2023-02-16 12:35:13 +00:00
no_library_allocation.cc libstdc++: Fix tests relying on operator new/delete overload 2023-08-23 06:35:24 +02:00
shared_with_static_deps.cc Update copyright years. 2023-01-16 11:52:17 +01:00
static.cc Update copyright years. 2023-01-16 11:52:17 +01:00
tag_type_explicit_ctor.cc Update copyright years. 2023-01-16 11:52:17 +01:00
using_namespace_std.cc Update copyright years. 2023-01-16 11:52:17 +01:00
using_namespace_std_exp_neg.cc Update copyright years. 2023-01-16 11:52:17 +01:00
using_namespace_std_tr1_neg.cc Update copyright years. 2023-01-16 11:52:17 +01:00
versionconflict.cc libstdc++: Add a test for <version> FTM redefinitions 2023-04-05 18:45:14 +02:00