@@ -23,6 +23,7 @@ TESTS_PACKAGES=${TESTS_PACKAGES:-ON}
2323TESTS_USE_FORCED_PMEM=${TESTS_USE_FORCED_PMEM:- ON}
2424TESTS_ASAN=${TESTS_ASAN:- OFF}
2525TESTS_UBSAN=${TESTS_UBSAN:- OFF}
26+ TESTS_VALGRIND_UNWIND=${TESTS_VALGRIND_UNWIND:- OFF}
2627TEST_TIMEOUT=${TEST_TIMEOUT:- 600}
2728
2829export PMREORDER_STACKTRACE_DEPTH=20
@@ -106,6 +107,7 @@ function tests_clang_release_cpp11_no_valgrind() {
106107# BUILD build_gcc_debug_cpp14 (no tests)
107108# ##############################################################################
108109function build_gcc_debug_cpp14() {
110+ VALGRIND_UNWIND=${1:- ON}
109111 mkdir build
110112 cd build
111113
@@ -128,7 +130,8 @@ function build_gcc_debug_cpp14() {
128130 -DTESTS_COMPATIBILITY=1 \
129131 -DTESTS_CONCURRENT_GDB=1 \
130132 -DUSE_ASAN=${TESTS_ASAN} \
131- -DUSE_UBSAN=${TESTS_UBSAN}
133+ -DUSE_UBSAN=${TESTS_UBSAN} \
134+ -DUSE_LIBUNWIND=${VALGRIND_UNWIND}
132135
133136 make -j$( nproc)
134137}
@@ -152,7 +155,7 @@ function tests_gcc_debug_cpp14_no_valgrind() {
152155# ##############################################################################
153156function tests_gcc_debug_cpp14_valgrind_memcheck_drd() {
154157 printf " \n$( tput setaf 1) $( tput setab 7) BUILD ${FUNCNAME[0]} START$( tput sgr 0) \n"
155- build_gcc_debug_cpp14
158+ build_gcc_debug_cpp14 ${TESTS_VALGRIND_UNWIND}
156159 ctest -R " _memcheck|_drd" --timeout ${TEST_TIMEOUT} --output-on-failure
157160 workspace_cleanup
158161 printf " $( tput setaf 1) $( tput setab 7) BUILD ${FUNCNAME[0]} END$( tput sgr 0) \n\n"
@@ -163,7 +166,7 @@ function tests_gcc_debug_cpp14_valgrind_memcheck_drd() {
163166# ##############################################################################
164167function tests_gcc_debug_cpp14_valgrind_other() {
165168 printf " \n$( tput setaf 1) $( tput setab 7) BUILD ${FUNCNAME[0]} START$( tput sgr 0) \n"
166- build_gcc_debug_cpp14
169+ build_gcc_debug_cpp14 ${TESTS_VALGRIND_UNWIND}
167170 ctest -E " _none|_memcheck|_drd" --timeout ${TEST_TIMEOUT} --output-on-failure
168171 ctest -R " _pmreorder" --timeout ${TEST_TIMEOUT} --output-on-failure
169172 workspace_cleanup
@@ -210,7 +213,6 @@ function tests_gcc_release_cpp17_no_valgrind() {
210213# ##############################################################################
211214# BUILD tests_clang_release_cpp20_no_valgrind llvm
212215# ##############################################################################
213-
214216function tests_clang_release_cpp20_no_valgrind() {
215217 printf " \n$( tput setaf 1) $( tput setab 7) BUILD ${FUNCNAME[0]} START$( tput sgr 0) \n"
216218
0 commit comments