gcc/libstdc++-v3/testsuite/18_support
Jonathan Wakely 03cb6904d1 libstdc++: Remove reliance on unspecified behaviour in std::rethrow_if_nested test
This test case calls std::set_terminate while there is an active
exception. Since LWG 2111 it is unspecified which terminate handler is
used when std::nested_exception::rethrow_nested() calls std::terminate.
With libsupc++ the global handler changed by std::set_terminate is used,
but libc++abi uses the active exception's handler (the one that was
current when the exception was first thrown).

Adjust the test case so that it works with either implementation choice.
So that the process doesn't exit cleanly if std::terminate happens
sooner than expected, use a global variable to control when the "clean
terminate" behaviour happens.

libstdc++-v3/ChangeLog:

	* testsuite/18_support/nested_exception/rethrow_if_nested-term.cc:
	Call std::set_terminate before throwing the nested exception.
2023-08-21 10:43:19 +01:00
..
aligned_alloc Update copyright years. 2023-01-16 11:52:17 +01:00
bad_alloc Update copyright years. 2023-01-16 11:52:17 +01:00
bad_cast Update copyright years. 2023-01-16 11:52:17 +01:00
bad_exception libstdc++: Fix some freestanding test failures 2023-04-05 18:45:15 +02:00
bad_typeid Update copyright years. 2023-01-16 11:52:17 +01:00
byte Update copyright years. 2023-01-16 11:52:17 +01:00
comparisons libstdc++: Make __cmp_cat::__unseq constructor consteval 2023-08-17 20:24:17 +01:00
coroutines libstdc++: Fix test for hash<coroutine_handle<P>>::operator() [PR109165] 2023-03-18 09:43:20 +00:00
exception Update copyright years. 2023-01-16 11:52:17 +01:00
exception_ptr Update copyright years. 2023-01-16 11:52:17 +01:00
headers libstdc++: Uncomment checks for <limits> enumeration types 2023-05-17 20:06:46 +01:00
initializer_list Update copyright years. 2023-01-16 11:52:17 +01:00
launder Update copyright years. 2023-01-16 11:52:17 +01:00
max_align_t/requirements Update copyright years. 2023-01-16 11:52:17 +01:00
nested_exception libstdc++: Remove reliance on unspecified behaviour in std::rethrow_if_nested test 2023-08-21 10:43:19 +01:00
numeric_limits libstdc++: Make std::numeric_limits<__float128> more portable [PR104772] 2023-06-06 16:29:22 +01:00
quick_exit Update copyright years. 2023-01-16 11:52:17 +01:00
source_location Update copyright years. 2023-01-16 11:52:17 +01:00
type_info Update copyright years. 2023-01-16 11:52:17 +01:00
uncaught_exception Update copyright years. 2023-01-16 11:52:17 +01:00
uncaught_exceptions Update copyright years. 2023-01-16 11:52:17 +01:00
50594.cc Update copyright years. 2023-01-16 11:52:17 +01:00
51333.cc Update copyright years. 2023-01-16 11:52:17 +01:00
96817.cc libstdc++: Fix some freestanding test failures 2023-04-05 18:45:15 +02:00
105387.cc libstdc++: fix pointer type exception catch (no RTTI) [PR105387] 2022-11-05 14:03:08 +00:00
105387_memptr.cc libstdc++: fix pointer type exception catch (no RTTI) [PR105387] 2022-11-05 14:03:08 +00:00
cxa_vec.cc Update copyright years. 2023-01-16 11:52:17 +01:00
destroying_delete.cc Update copyright years. 2023-01-16 11:52:17 +01:00
free_eh_pool.cc Update copyright years. 2023-01-16 11:52:17 +01:00
new_aligned.cc Update copyright years. 2023-01-16 11:52:17 +01:00
new_delete_placement.cc Update copyright years. 2023-01-16 11:52:17 +01:00
new_handler.cc Update copyright years. 2023-01-16 11:52:17 +01:00
new_nothrow.cc Update copyright years. 2023-01-16 11:52:17 +01:00
pthread_guard.cc Update copyright years. 2023-01-16 11:52:17 +01:00
set_terminate.cc Update copyright years. 2023-01-16 11:52:17 +01:00
set_unexpected.cc Update copyright years. 2023-01-16 11:52:17 +01:00
terminate_handler.cc Update copyright years. 2023-01-16 11:52:17 +01:00
unexpected_handler.cc Update copyright years. 2023-01-16 11:52:17 +01:00