llvm-project/libcxxabi/test
Daniel McIntosh 795ff77840 [libcxxabi] Fix NO_THREADS version of test_exception_storage.pass.cpp
`thread_code` returns param, which for NO_THREADS is going to be
`&thread_globals`. Thus, the return value will never be null. The test
was probably meant to check if `*thread_code(&thread_globals) == 0`.
However, to avoid the extra cast, and to bring the NO_THREADS version
more in line with the regular version of the test, this changes it to
check if thread_globals == 0 directly.

Reviewed By: ldionne, #libc_abi

Differential Revision: https://reviews.llvm.org/D113048
2021-11-04 19:30:21 -04:00
..
configs [libc++][AIX] Add scripts and config for building with the libcxx CI infrastructure 2021-10-14 14:31:10 -04:00
libcxxabi [libc++abi] Change LIBCXXABI_NO_TIMER to LIBCXXABI_USE_TIMER 2021-10-13 08:02:31 -04:00
native/arm-linux-eabi [libc++] Move handling of the target triple to the DSL 2021-05-08 11:10:53 -04:00
support [libc++abi] Change LIBCXXABI_NO_TIMER to LIBCXXABI_USE_TIMER 2021-10-13 08:02:31 -04:00
vendor/apple [runtimes] Add tests for vendor-specific properties 2021-10-07 15:46:20 -04:00
CMakeLists.txt [libc++abi][ci] Add a from-scratch config for libc++abi on Apple/system 2021-10-13 08:07:40 -04:00
backtrace_test.pass.cpp [runtimes] Use int main(int, char**) consistently in tests 2020-10-08 14:28:13 -04:00
catch_array_01.pass.cpp [runtimes] Use int main(int, char**) consistently in tests 2020-10-08 14:28:13 -04:00
catch_array_02.pass.cpp [runtimes] Use int main(int, char**) consistently in tests 2020-10-08 14:28:13 -04:00
catch_class_01.pass.cpp [runtimes] Use int main(int, char**) consistently in tests 2020-10-08 14:28:13 -04:00
catch_class_02.pass.cpp [runtimes] Use int main(int, char**) consistently in tests 2020-10-08 14:28:13 -04:00
catch_class_03.pass.cpp [libc++abi] Remove workarounds for missing -Wno-exceptions on older GCCs 2021-09-03 14:23:28 -04:00
catch_class_04.pass.cpp [libc++abi] Remove workarounds for missing -Wno-exceptions on older GCCs 2021-09-03 14:23:28 -04:00
catch_const_pointer_nullptr.pass.cpp [runtimes] Use int main(int, char**) consistently in tests 2020-10-08 14:28:13 -04:00
catch_function_01.pass.cpp [runtimes] Simplify how we specify XFAIL & friends based on the triple 2021-07-01 14:03:30 -04:00
catch_function_02.pass.cpp [runtimes] Use int main(int, char**) consistently in tests 2020-10-08 14:28:13 -04:00
catch_function_03.pass.cpp [libc++/abi] Fix broken Lit feature no-noexcept-function-type 2021-07-15 14:42:07 -04:00
catch_in_noexcept.pass.cpp [runtimes] Use int main(int, char**) consistently in tests 2020-10-08 14:28:13 -04:00
catch_member_data_pointer_01.pass.cpp [runtimes] Simplify how we specify XFAIL & friends based on the triple 2021-07-01 14:03:30 -04:00
catch_member_function_pointer_01.pass.cpp [runtimes] Use int main(int, char**) consistently in tests 2020-10-08 14:28:13 -04:00
catch_member_function_pointer_02.pass.cpp [libc++] Remove Lit annotations for unsupported GCC versions from the test suite 2021-08-12 13:30:47 -04:00
catch_member_pointer_nullptr.pass.cpp [runtimes] Simplify how we specify XFAIL & friends based on the triple 2021-07-01 14:03:30 -04:00
catch_multi_level_pointer.pass.cpp [runtimes] Simplify how we specify XFAIL & friends based on the triple 2021-07-01 14:03:30 -04:00
catch_pointer_nullptr.pass.cpp [runtimes] Simplify how we specify XFAIL & friends based on the triple 2021-07-01 14:03:30 -04:00
catch_pointer_reference.pass.cpp [libc++abi] Get rid of warnings when running the tests with GCC 2020-11-02 10:19:39 -05:00
catch_ptr.pass.cpp [libc++abi] Remove workarounds for missing -Wno-exceptions on older GCCs 2021-09-03 14:23:28 -04:00
catch_ptr_02.pass.cpp [libc++abi] Remove workarounds for missing -Wno-exceptions on older GCCs 2021-09-03 14:23:28 -04:00
catch_reference_nullptr.pass.cpp [runtimes] Use int main(int, char**) consistently in tests 2020-10-08 14:28:13 -04:00
cxa_bad_cast.pass.cpp [libc++abi] Get rid of warnings when running the tests with GCC 2020-11-02 10:19:39 -05:00
cxa_bad_typeid.pass.cpp [libc++abi] Get rid of warnings when running the tests with GCC 2020-11-02 10:19:39 -05:00
cxa_thread_atexit_test.pass.cpp [runtimes] Use int main(int, char**) consistently in tests 2020-10-08 14:28:13 -04:00
cxa_vec_new_overflow_PR41395.pass.cpp [runtimes] Simplify how we specify XFAIL & friends based on the triple 2021-07-01 14:03:30 -04:00
dynamic_cast.pass.cpp [libc++] Remove more test-suite workarounds for unsupported GCC versions 2021-08-20 13:26:43 -04:00
dynamic_cast3.pass.cpp [libc++] Remove more test-suite workarounds for unsupported GCC versions 2021-08-20 13:26:43 -04:00
dynamic_cast5.pass.cpp [libc++] Remove more test-suite workarounds for unsupported GCC versions 2021-08-20 13:26:43 -04:00
dynamic_cast14.pass.cpp [runtimes] Use int main(int, char**) consistently in tests 2020-10-08 14:28:13 -04:00
dynamic_cast_stress.pass.cpp [runtimes] Use int main(int, char**) consistently in tests 2020-10-08 14:28:13 -04:00
exception_object_alignment.2.pass.cpp [runtimes] Use int main(int, char**) consistently in tests 2020-10-08 14:28:13 -04:00
exception_object_alignment.pass.cpp [runtimes] Simplify how we specify XFAIL & friends based on the triple 2021-07-01 14:03:30 -04:00
forced_unwind1.pass.cpp [Unwind] Harmonise exception class for EHABI spec. 2021-09-02 11:31:03 +02:00
forced_unwind2.pass.cpp [Unwind] Harmonise exception class for EHABI spec. 2021-09-02 11:31:03 +02:00
guard_test_basic.pass.cpp [libc++abi] Get rid of warnings when running the tests with GCC 2020-11-02 10:19:39 -05:00
guard_threaded_test.pass.cpp [libc++] Introduce an indirection to create threads in the test suite 2020-11-27 11:54:19 -05:00
incomplete_type.sh.cpp [runtimes] Simplify how we specify XFAIL & friends based on the triple 2021-07-01 14:03:30 -04:00
inherited_exception.pass.cpp [libc++abi] Remove workarounds for missing -Wno-exceptions on older GCCs 2021-09-03 14:23:28 -04:00
lit.cfg.py [libc++abi] Allow specifying custom Lit config files 2020-06-25 12:15:15 -04:00
lit.site.cfg.in [runtimes] Add tests for vendor-specific properties 2021-10-07 15:46:20 -04:00
noexception1.pass.cpp [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
noexception2.pass.cpp [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
noexception3.pass.cpp [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
noexception4.pass.cpp [libc++/abi/unwind] Rename Lit features for no exceptions to 'no-exceptions' 2020-04-22 08:25:27 -04:00
test_aux_runtime.pass.cpp [libc++/abi] Clean up uses of <iostream> in the test suite 2020-10-13 20:25:33 -04:00
test_aux_runtime_op_array_new.pass.cpp [runtimes] Simplify how we specify XFAIL & friends based on the triple 2021-07-01 14:03:30 -04:00
test_demangle.pass.cpp [demangle] Support for ISO/IEC TS 18661 binary floating point type 2021-09-23 11:02:58 +08:00
test_exception_address_alignment.pass.cpp [libc++] Remove test-suite annotations for unsupported Clang versions 2021-08-20 15:05:13 -04:00
test_exception_storage.pass.cpp [libcxxabi] Fix NO_THREADS version of test_exception_storage.pass.cpp 2021-11-04 19:30:21 -04:00
test_fallback_malloc.pass.cpp [libcxxabi] Fix printf formats in a test. 2020-10-16 13:59:11 +01:00
test_guard.pass.cpp [libc++] Introduce an indirection to create threads in the test suite 2020-11-27 11:54:19 -05:00
test_vector1.pass.cpp [libc++/abi] Clean up uses of <iostream> in the test suite 2020-10-13 20:25:33 -04:00
test_vector2.pass.cpp [libc++/abi] Clean up uses of <iostream> in the test suite 2020-10-13 20:25:33 -04:00
test_vector3.pass.cpp [libc++abi] Get rid of warnings when running the tests with GCC 2020-11-02 10:19:39 -05:00
thread_local_destruction_order.pass.cpp [libc++] Add a CI job for macOS on arm64 hardware 🥳 2021-07-13 13:49:05 -04:00
uncaught_exception.pass.cpp [libc++/abi/unwind] Rename Lit features for no exceptions to 'no-exceptions' 2020-04-22 08:25:27 -04:00
uncaught_exceptions.pass.cpp [runtimes] Simplify how we specify XFAIL & friends based on the triple 2021-07-01 14:03:30 -04:00
unittest_demangle.pass.cpp [runtimes] Use int main(int, char**) consistently in tests 2020-10-08 14:28:13 -04:00
unwind_01.pass.cpp [runtimes] Use int main(int, char**) consistently in tests 2020-10-08 14:28:13 -04:00
unwind_02.pass.cpp [libc++] Add a job running GCC with C++11 2021-07-15 22:13:03 -04:00
unwind_03.pass.cpp [libc++] Add a job running GCC with C++11 2021-07-15 22:13:03 -04:00
unwind_04.pass.cpp [libc++] Add a job running GCC with C++11 2021-07-15 22:13:03 -04:00
unwind_05.pass.cpp [libc++] Add a job running GCC with C++11 2021-07-15 22:13:03 -04:00
unwind_06.pass.cpp [libc++] Remove more test-suite workarounds for unsupported GCC versions 2021-08-20 13:26:43 -04:00