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 libstdc++: Fix some AIX test failures 2023-04-12 23:25:17 +01:00
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 libstdc++: Remove test dependency on _GLIBCXX_USE_C99_STDINT_TR1 2023-05-12 14:40:39 +01:00
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 libstdc++: Define std::sub_match::swap member function (LWG 3204) 2023-04-05 11:37:19 +01:00
29_atomics libstdc++: Stop using _GLIBCXX_USE_C99_STDINT_TR1 in <cstdint> 2023-05-16 09:59:19 +01:00
30_threads libstdc++: Avoid -Wmaybe-uninitialized warning in std::stop_source [PR109339] 2023-03-31 14:20:52 +01:00
abi Update copyright years. 2023-01-16 11:52:17 +01:00
backward Update copyright years. 2023-01-16 11:52:17 +01:00
config Update copyright years. 2023-01-16 11:52:17 +01:00
data
decimal Update copyright years. 2023-01-16 11:52:17 +01:00
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 Update copyright years. 2023-01-16 11:52:17 +01:00
libstdc++-dg Update copyright years. 2023-01-16 11:52:17 +01:00
libstdc++-prettyprinters libstdc++: Handle invalid values in std::chrono pretty printers 2023-08-11 14:33:01 +01:00
libstdc++-xmethods libstdc++: Fix GDB Xmethod for std::shared_ptr::use_count() [PR109064] 2023-03-10 11:10:23 +00:00
performance Update copyright years. 2023-01-16 11:52:17 +01:00
special_functions Update copyright years. 2023-01-16 11:52:17 +01:00
std libstdc++: Add std::formatter specializations for extended float types 2023-08-17 20:24:18 +01:00
tr1 Update copyright years. 2023-01-16 11:52:17 +01:00
tr2 Update copyright years. 2023-01-16 11:52:17 +01:00
util libstdc++: Fix tests relying on operator new/delete overload 2023-08-23 06:35:24 +02:00
Makefile.am Update copyright years. 2023-01-16 11:52:17 +01:00
Makefile.in libstdc++: Don't use gstdint.h anymore 2022-10-29 00:55:42 +01:00