Skip to content

Commit

Permalink
travis: enable address sanitizer
Browse files Browse the repository at this point in the history
This patch enables the Address Sanitizer in Travis, which helps
at detecting memory corruptions when the tests are running.

Signed-off-by: Sylvain Didelot <[email protected]>
  • Loading branch information
sydidelot committed Mar 10, 2020
1 parent 4dffe5f commit 1a0b944
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ env:
# do not know how to fix
#- MAKE_FLAGS="AM_CFLAGS=-Werror"
- MAKE_FLAGS=
- ASAN_OPTIONS=detect_leaks=0

# Brew update GNU Autotools so that autogen can succeed
before_install:
Expand Down Expand Up @@ -98,7 +99,7 @@ install:
- ./configure $LIBFABRIC_CONFIGURE_ARGS --enable-debug
- make -j2 $MAKE_FLAGS
# Test regular build
- ./configure $LIBFABRIC_CONFIGURE_ARGS
- CFLAGS="-fsanitize=address" ./configure $LIBFABRIC_CONFIGURE_ARGS
- make -j2 $MAKE_FLAGS
- make install
- make test
Expand All @@ -108,7 +109,7 @@ install:
script:
- cd fabtests
- ./autogen.sh
- ./configure --prefix=$PREFIX --with-libfabric=$PREFIX
- CFLAGS="-fsanitize=address" ./configure --prefix=$PREFIX --with-libfabric=$PREFIX
# Do not use MAKE_FLAGS here because we use AM_CFLAGS in the
# normal fabtests' Makefile.am (i.e., overriding it on the command
# line removes information that we need to build fabtests itself).
Expand Down

0 comments on commit 1a0b944

Please sign in to comment.