travis: VALGRIND->RUN_VALGRIND to avoid confusion with WITH_VALGRIND

Also remove CPPFLAGS=-DVALGRIND because that's redundant when
configured with --with-valgrind.
This commit is contained in:
Jonas Nick
2020-09-21 07:52:11 +00:00
parent 66a765c775
commit 4eecb4d6ef
2 changed files with 5 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ if [ -n "$BUILD" ]
then
make -j2 "$BUILD"
fi
if [ "$VALGRIND" = "yes" ]
if [ "$RUN_VALGRIND" = "yes" ]
then
make -j2
# the `--error-exitcode` is required to make the test fail if valgrind found errors, otherwise it'll return 0 (http://valgrind.org/docs/manual/manual-core.html)
@@ -34,7 +34,7 @@ then
fi
if [ "$BENCH" = "yes" ]
then
if [ "$VALGRIND" = "yes" ]
if [ "$RUN_VALGRIND" = "yes" ]
then
# Using the local `libtool` because on macOS the system's libtool has nothing to do with GNU libtool
EXEC='./libtool --mode=execute valgrind --error-exitcode=42'