llvm-project/libcxxabi/test
Igor Kudrin d9edde4ae2 Recommit r282692: [libc++abi] Use fallback_malloc to allocate __cxa_eh_globals in case of dynamic memory exhaustion.
Throwing an exception for the first time may lead to call calloc to
allocate memory for __cxa_eh_globals. If the memory pool is exhausted
at that moment, it results in abnormal termination of the program.

This patch addresses the issue by using fallback_malloc in that case.

In this revision, some restrictions were added into the test to not
run it in unsuitable environments.

Differential Revision: https://reviews.llvm.org/D17815

llvm-svn: 283531
2016-10-07 08:48:28 +00:00
..
libcxxabi [libcxxabi] cleanup the use of LIBCXXABI_HAS_NO_THREADS macro (NFC) 2016-09-21 09:09:32 +00:00
support Add missing license headers 2016-01-19 22:07:10 +00:00
CMakeLists.txt [CMake] Be more consistent about naming targets and components in libc++abi 2016-08-28 18:28:51 +00:00
backtrace_test.pass.cpp test: fix test under ASAN and MSAN 2016-08-28 18:16:00 +00:00
catch_array_01.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
catch_array_02.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
catch_class_01.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
catch_class_02.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
catch_class_03.pass.cpp Suppress warnings about the operations currently under test. 2016-06-15 19:07:19 +00:00
catch_class_04.pass.cpp [libcxxabi] Reorder base class initializers in libc++abi tests to prevent -Wreorder 2016-06-15 19:33:01 +00:00
catch_const_pointer_nullptr.pass.cpp [libcxxabi] When catching an exception of type nullptr_t with a handler of 2016-07-19 20:19:37 +00:00
catch_function_01.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
catch_function_02.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
catch_in_noexcept.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
catch_member_data_pointer_01.pass.cpp Fix [libcxxabi] Fix warning about uninitialized const member. 2016-06-15 19:59:16 +00:00
catch_member_function_pointer_01.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
catch_member_pointer_nullptr.pass.cpp [libcxxabi] When catching an exception of type nullptr_t with a handler of 2016-07-19 20:19:37 +00:00
catch_multi_level_pointer.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
catch_pointer_nullptr.pass.cpp [libcxxabi] When catching an exception of type nullptr_t with a handler of 2016-07-19 20:19:37 +00:00
catch_pointer_reference.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
catch_ptr.pass.cpp [libcxxabi] Reorder base class initializers in libc++abi tests to prevent -Wreorder 2016-06-15 19:33:01 +00:00
catch_ptr_02.pass.cpp Suppress warnings about the operations currently under test. 2016-06-15 19:07:19 +00:00
catch_reference_nullptr.pass.cpp Attempt to bring peace to -Werror buildbots. 2016-07-19 20:35:09 +00:00
cxa_bad_cast.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
cxa_bad_typeid.pass.cpp [libcxxabi][test] Add missing return statement. 2016-06-01 19:13:53 +00:00
cxa_thread_atexit_test.pass.cpp Fix side effect in assertion 2016-09-16 08:16:07 +00:00
dynamic_cast3.pass.cpp Suppress warnings about the operations currently under test. 2016-06-15 19:07:19 +00:00
dynamic_cast5.pass.cpp Suppress warnings about the operations currently under test. 2016-06-15 19:07:19 +00:00
dynamic_cast14.pass.cpp Reducing stack usage of test 2016-03-04 14:25:13 +00:00
dynamic_cast_stress.pass.cpp Fix or disable C++11 tests in C++03 mode 2015-08-20 01:22:17 +00:00
incomplete_type.sh.cpp [libcxxabi] When catching an exception of type nullptr_t with a handler of 2016-07-19 20:19:37 +00:00
inherited_exception.pass.cpp Suppress warnings about the operations currently under test. 2016-06-15 19:07:19 +00:00
lit.cfg [lit] Replace print with lit_config.note(). 2016-09-02 13:56:05 +00:00
lit.site.cfg.in [libcxxabi] Allow target flags to affect configuration tests. 2016-06-02 02:18:31 +00:00
noexception1.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
noexception2.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
noexception3.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
noexception4.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
test_aux_runtime.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
test_aux_runtime_op_array_new.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
test_demangle.pass.cpp Fix ASAN failures in the demangler 2016-08-13 00:02:33 +00:00
test_exception_storage.pass.cpp [libcxxabi] cleanup the use of LIBCXXABI_HAS_NO_THREADS macro (NFC) 2016-09-21 09:09:32 +00:00
test_exception_storage_nodynmem.pass.cpp Recommit r282692: [libc++abi] Use fallback_malloc to allocate __cxa_eh_globals in case of dynamic memory exhaustion. 2016-10-07 08:48:28 +00:00
test_fallback_malloc.pass.cpp Recommit r282692: [libc++abi] Use fallback_malloc to allocate __cxa_eh_globals in case of dynamic memory exhaustion. 2016-10-07 08:48:28 +00:00
test_guard.pass.cpp [libcxxabi] cleanup the use of LIBCXXABI_HAS_NO_THREADS macro (NFC) 2016-09-21 09:09:32 +00:00
test_vector1.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
test_vector2.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
test_vector3.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
testit Rename all of the tests in preparation for merging lit configs with libcxx 2015-01-21 19:05:37 +00:00
uncaught_exceptions.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
unwind_01.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
unwind_02.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
unwind_03.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
unwind_04.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
unwind_05.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00
unwind_06.pass.cpp [libcxxabi] Introduce a -fno-exceptions libc++abi libary variant 2016-05-31 12:01:32 +00:00