Enable AddressSanitizer for the tests

This commit is contained in:
AntonioBL 2018-11-29 11:05:24 +01:00
parent ff97147b61
commit 58d27d0a19
2 changed files with 4 additions and 2 deletions

View file

@ -5,5 +5,6 @@ set -e # exit on error
set -x # echo commands
make revision
make debug CPUS=2 PREFIX="$HOME/software" COVERAGE=ON
make installdebug CPUS=2 PREFIX="$HOME/software"
export CXXFLAGS="-fsanitize=address -fno-omit-frame-pointer"
# make debug CPUS=2 PREFIX="$HOME/software" COVERAGE=ON
make installdebug CPUS=2 PREFIX="$HOME/software" COVERAGE=ON # make debug is already called by installdebug as a dependency

View file

@ -6,6 +6,7 @@ cd build.debug/mtest
# vnc is the only tested platform plugin that allows to run
# mscore executable in the used Travis environment.
export QT_QPA_PLATFORM=vnc
export ASAN_OPTIONS=detect_leaks=0
xvfb-run -a ctest -j2 --output-on-failure