mirror of
https://github.com/Naios/continuable.git
synced 2026-02-10 20:29:49 +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_NO_EXCEPTIONS=ON
|
||||||
- WITH_AWAIT=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:
|
install:
|
||||||
- export CXX=$COMPILER
|
- export CXX=$COMPILER
|
||||||
- $CXX --version
|
- $CXX --version
|
||||||
|
|||||||
@ -47,16 +47,21 @@ function renew_build {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if [[ $CXX == *"clang"* ]]; then
|
if [[ $CXX == *"clang"* ]]; then
|
||||||
|
LSAN_OPTIONS=verbosity=1:log_threads=1
|
||||||
ASAN_OPTIONS=abort_on_error=1
|
ASAN_OPTIONS=abort_on_error=1
|
||||||
|
|
||||||
# Build the test suite with various sanitizers:
|
# Build the test suite with various sanitizers:
|
||||||
# - ASan (LSan):
|
if [ $WITH_AWAIT != "ON" ]; then
|
||||||
echo "Building with address sanitizer..."
|
# - ASan (LSan):
|
||||||
CMAKE_CXX_FLAGS="-fsanitize=address -fno-omit-frame-pointer"
|
echo "Building with address sanitizer..."
|
||||||
renew_build
|
CMAKE_CXX_FLAGS="-fsanitize=address -fno-omit-frame-pointer"
|
||||||
|
renew_build
|
||||||
|
|
||||||
ninja -j2
|
ninja -j2
|
||||||
ctest --verbose
|
ctest --verbose
|
||||||
|
else
|
||||||
|
echo "Skipping ASan testing because we build with coroutine support...";
|
||||||
|
fi
|
||||||
|
|
||||||
# - UBSan:
|
# - UBSan:
|
||||||
echo "Building with undefined behaviour sanitizer..."
|
echo "Building with undefined behaviour sanitizer..."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user