gcc/libstdc++-v3/testsuite
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
..
17_intro libstdc++: Fix tests relying on operator new/delete overload 2023-08-23 06:35:24 +02:00
18_support libstdc++: Remove reliance on unspecified behaviour in std::rethrow_if_nested test 2023-08-21 10:43:19 +01:00
19_diagnostics
20_util libstdc++: Implement C++20 std::chrono::parse [PR104167] 2023-08-11 19:58:06 +01:00
21_strings libstdc++: Implement std::to_string in terms of std::format (P2587R3) 2023-08-17 20:24:17 +01:00
22_locale
23_containers libstdc++: Fix tests relying on operator new/delete overload 2023-08-23 06:35:24 +02:00
24_iterators libstdc++: Disable PCH for tests that rely on include order 2023-08-17 08:42:45 +01:00
25_algorithms libstdc++: Fix comment naming upstream PSTL test file 2023-08-16 17:23:35 +01:00
26_numerics c++: Improve location information in constant evaluation 2023-07-25 21:45:10 -04:00
27_io libstdc++: Check conversion from filesystem::path to wide strings [PR95048] 2023-07-12 21:04:13 +01:00
28_regex
29_atomics
30_threads
abi
backward
config
data
decimal
experimental libstdc++: Check conversion from filesystem::path to wide strings [PR95048] 2023-07-12 21:04:13 +01:00
ext libstdc++: Fix tests relying on operator new/delete overload 2023-08-23 06:35:24 +02:00
lib libstdc++: Fix testsuite no_pch directive 2023-08-17 08:42:45 +01:00
libstdc++-abi
libstdc++-dg
libstdc++-prettyprinters libstdc++: Handle invalid values in std::chrono pretty printers 2023-08-11 14:33:01 +01:00
libstdc++-xmethods
performance
special_functions
std libstdc++: Add std::formatter specializations for extended float types 2023-08-17 20:24:18 +01:00
tr1
tr2
util libstdc++: Fix tests relying on operator new/delete overload 2023-08-23 06:35:24 +02:00
Makefile.am
Makefile.in