@@ -37,7 +37,10 @@ macro(configure_tests target)
3737 target_compile_definitions (${target} PRIVATE
3838 # Somewhat speed up Catch2 compile times
3939 CATCH_CONFIG_FAST_COMPILE
40- # Enable assertions for more thorough tests
40+ # Fortify test suite for more thorough checks
41+ _FORTIFY_SOURCE=3
42+ _GLIBCXX_ASSERTIONS
43+ _LIBCPP_ENABLE_ASSERTIONS=1
4144 GFX_TIMSORT_ENABLE_ASSERT
4245 )
4346
@@ -85,6 +88,7 @@ endmacro()
8588# Tests that can run with C++98
8689add_executable (cxx_98_tests
8790 cxx_98_tests.cpp
91+ verbose_abort.cpp
8892)
8993configure_tests(cxx_98_tests)
9094target_compile_features (cxx_98_tests PRIVATE cxx_std_98)
@@ -93,20 +97,23 @@ target_compile_features(cxx_98_tests PRIVATE cxx_std_98)
9397add_executable (cxx_11_tests
9498 merge_cxx_11_tests.cpp
9599 cxx_11_tests.cpp
100+ verbose_abort.cpp
96101)
97102configure_tests(cxx_11_tests)
98103target_compile_features (cxx_11_tests PRIVATE cxx_std_11)
99104
100105# Tests requiring C++17 support
101106add_executable (cxx_17_tests
102107 cxx_17_tests.cpp
108+ verbose_abort.cpp
103109)
104110configure_tests(cxx_17_tests)
105111target_compile_features (cxx_17_tests PRIVATE cxx_std_17)
106112
107113# Tests requiring C++20 support
108114add_executable (cxx_20_tests
109115 cxx_20_tests.cpp
116+ verbose_abort.cpp
110117)
111118configure_tests(cxx_20_tests)
112119target_compile_features (cxx_20_tests PRIVATE cxx_std_20)
0 commit comments