mirror of
https://github.com/Naios/continuable.git
synced 2025-12-08 01:36:46 +08:00
Skip asan testing when using await
This commit is contained in:
parent
444a38f56f
commit
66b662e2a4
18
.travis.yml
18
.travis.yml
@ -59,24 +59,6 @@ matrix:
|
||||
- WITH_NO_EXCEPTIONS=ON
|
||||
- WITH_AWAIT=ON
|
||||
|
||||
allow_failures:
|
||||
- os: linux
|
||||
compiler: clang
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
- llvm-toolchain-trusty-5.0
|
||||
packages:
|
||||
- clang-5.0
|
||||
- cmake
|
||||
- cmake-data
|
||||
- ninja-build
|
||||
env:
|
||||
- COMPILER=clang++-5.0
|
||||
- WITH_NO_EXCEPTIONS=ON
|
||||
- WITH_AWAIT=ON
|
||||
|
||||
install:
|
||||
- export CXX=$COMPILER
|
||||
- $CXX --version
|
||||
|
||||
@ -47,16 +47,21 @@ function renew_build {
|
||||
}
|
||||
|
||||
if [[ $CXX == *"clang"* ]]; then
|
||||
LSAN_OPTIONS=verbosity=1:log_threads=1
|
||||
ASAN_OPTIONS=abort_on_error=1
|
||||
|
||||
# Build the test suite with various sanitizers:
|
||||
# - ASan (LSan):
|
||||
echo "Building with address sanitizer..."
|
||||
CMAKE_CXX_FLAGS="-fsanitize=address -fno-omit-frame-pointer"
|
||||
renew_build
|
||||
if [ $WITH_AWAIT != "ON" ]; then
|
||||
# - ASan (LSan):
|
||||
echo "Building with address sanitizer..."
|
||||
CMAKE_CXX_FLAGS="-fsanitize=address -fno-omit-frame-pointer"
|
||||
renew_build
|
||||
|
||||
ninja -j2
|
||||
ctest --verbose
|
||||
ninja -j2
|
||||
ctest --verbose
|
||||
else
|
||||
echo "Skipping ASan testing because we build with coroutine support...";
|
||||
fi
|
||||
|
||||
# - UBSan:
|
||||
echo "Building with undefined behaviour sanitizer..."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user