Skip to content

Commit

Permalink
tweak timeout and asan options
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Jul 20, 2023
1 parent bfdfea0 commit 3db8d71
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .circleci/cmake-asan
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ add_flag -Werror
add_flag -fdiagnostics-color=always
add_flag -fno-omit-frame-pointer
add_flag -fsanitize=address
add_flag -fsanitize-recover=address
add_flag -Wno-error=declaration-after-statement
# add_flag -Wno-error=unused-but-set-variable
add_flag -Wno-error=documentation
Expand All @@ -29,7 +30,7 @@ cmake -B_build -H. -GNinja \
-DMUST_BUILD_TOXAV=ON \
-DNON_HERMETIC_TESTS=ON \
-DSTRICT_ABI=ON \
-DTEST_TIMEOUT_SECONDS=120 \
-DTEST_TIMEOUT_SECONDS=5000 \
-DUSE_IPV6=OFF \
-DAUTOTEST=ON \
-DBUILD_MISC_TESTS=ON \
Expand All @@ -39,7 +40,15 @@ cd _build

ninja install -j"$(nproc)"

export ASAN_OPTIONS="color=always"
export ASAN_OPTIONS=""

# HINT: ignore ASAN errors and continue
# export ASAN_OPTIONS="$ASAN_OPTIONS,halt_on_error=0"

# HINT: ignore ASAN leaks
export ASAN_OPTIONS="$ASAN_OPTIONS,detect_leaks=0"

export ASAN_OPTIONS="$ASAN_OPTIONS,color=always"
export ASAN_OPTIONS="$ASAN_OPTIONS,detect_invalid_pointer_pairs=1"
export ASAN_OPTIONS="$ASAN_OPTIONS,detect_stack_use_after_return=1"
export ASAN_OPTIONS="$ASAN_OPTIONS,strict_init_order=1"
Expand Down

0 comments on commit 3db8d71

Please sign in to comment.