Skip asan testing when using await

This commit is contained in:
Denis Blank 2018-01-25 05:21:13 +01:00
parent 444a38f56f
commit 66b662e2a4
2 changed files with 11 additions and 24 deletions

View File

@ -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

View File

@ -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..."