Skip to content

Commit bfeed66

Browse files
Asan make builds: avoid sanitizer recovery
Some sanitizers default to displaying an error message and recovering. This could result in a test being recorded as passing despite a complaint from the sanitizer. Turn off sanitizer recovery to avoid this risk.
1 parent 004206c commit bfeed66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/scripts/all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pre_initialize_variables () {
129129
export CTEST_OUTPUT_ON_FAILURE=1
130130

131131
# CFLAGS and LDFLAGS for Asan builds that don't use CMake
132-
ASAN_CFLAGS='-Werror -Wall -Wextra -fsanitize=address,undefined'
132+
ASAN_CFLAGS='-Werror -Wall -Wextra -fsanitize=address,undefined -fno-sanitize-recover=all'
133133

134134
# Gather the list of available components. These are the functions
135135
# defined in this script whose name starts with "component_".

0 commit comments

Comments
 (0)