gcc/libstdc++-v3/testsuite/util
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
..
atomic Update copyright years. 2023-01-16 11:52:17 +01:00
common_type Update copyright years. 2023-01-16 11:52:17 +01:00
debug Update copyright years. 2023-01-16 11:52:17 +01:00
exception Update copyright years. 2023-01-16 11:52:17 +01:00
hash_fn Update copyright years. 2023-01-16 11:52:17 +01:00
io Update copyright years. 2023-01-16 11:52:17 +01:00
native_type Update copyright years. 2023-01-16 11:52:17 +01:00
performance Update copyright years. 2023-01-16 11:52:17 +01:00
pstl libstdc++: Synchronize PSTL with upstream 2023-06-26 11:34:43 -07:00
regression Update copyright years. 2023-01-16 11:52:17 +01:00
statistic Update copyright years. 2023-01-16 11:52:17 +01:00
thread Update copyright years. 2023-01-16 11:52:17 +01:00
replacement_memory_operators.h libstdc++: Fix tests relying on operator new/delete overload 2023-08-23 06:35:24 +02:00
slow_clock.h Update copyright years. 2023-01-16 11:52:17 +01:00
specfun_testcase.h Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_abi.cc libstdc++: Restore accidentally removed version in abi-check 2023-06-07 16:51:59 +01:00
testsuite_abi.h Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_abi_check.cc Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_allocator.cc Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_allocator.h libstdc++: Add relational operators to __gnu_test::PointerBase 2023-05-26 00:14:43 +01:00
testsuite_api.h Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_character.cc Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_character.h Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_common_types.h Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_container_traits.h Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_containergen.h Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_containers.h Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_counter_type.h Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_error.h Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_fs.h Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_greedy_ops.h Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_hooks.cc Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_hooks.h Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_io.h Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_iterators.h Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_new_operators.h Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_performance.h Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_random.h libstdc++: Stop using _GLIBCXX_USE_C99_MATH_TR1 in <cmath> 2023-05-31 21:01:16 +01:00
testsuite_regex.h Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_rng.h Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_rvalref.h Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_shared.cc Update copyright years. 2023-01-16 11:52:17 +01:00
testsuite_string.h libstdc++: Add __gnu_debug::basic_string<>::compare overloads 2022-10-12 21:50:21 +02:00
testsuite_tr1.h Update copyright years. 2023-01-16 11:52:17 +01:00