@@ -37,7 +37,10 @@ macro(configure_tests target)
37
37
target_compile_definitions (${target} PRIVATE
38
38
# Somewhat speed up Catch2 compile times
39
39
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
41
44
GFX_TIMSORT_ENABLE_ASSERT
42
45
)
43
46
@@ -85,6 +88,7 @@ endmacro()
85
88
# Tests that can run with C++98
86
89
add_executable (cxx_98_tests
87
90
cxx_98_tests.cpp
91
+ verbose_abort.cpp
88
92
)
89
93
configure_tests(cxx_98_tests)
90
94
target_compile_features (cxx_98_tests PRIVATE cxx_std_98)
@@ -93,20 +97,23 @@ target_compile_features(cxx_98_tests PRIVATE cxx_std_98)
93
97
add_executable (cxx_11_tests
94
98
merge_cxx_11_tests.cpp
95
99
cxx_11_tests.cpp
100
+ verbose_abort.cpp
96
101
)
97
102
configure_tests(cxx_11_tests)
98
103
target_compile_features (cxx_11_tests PRIVATE cxx_std_11)
99
104
100
105
# Tests requiring C++17 support
101
106
add_executable (cxx_17_tests
102
107
cxx_17_tests.cpp
108
+ verbose_abort.cpp
103
109
)
104
110
configure_tests(cxx_17_tests)
105
111
target_compile_features (cxx_17_tests PRIVATE cxx_std_17)
106
112
107
113
# Tests requiring C++20 support
108
114
add_executable (cxx_20_tests
109
115
cxx_20_tests.cpp
116
+ verbose_abort.cpp
110
117
)
111
118
configure_tests(cxx_20_tests)
112
119
target_compile_features (cxx_20_tests PRIVATE cxx_std_20)
0 commit comments