summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2017-11-16 23:42:12 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2017-11-16 23:42:12 +0000
commit88d542ad15149f8afe02ca7a3d410aa24e11339e (patch)
treec585eeee76630e615f3b7ec076e0d85b74f15981
parent530c878d417ea6e736addcd1c26db738cee607f6 (diff)
downloadlibgit2-ethomson/fail_on_leaks.tar.gz
travis: fail on memory leaksethomson/fail_on_leaks
Pass `--error-exitcode=125` to valgrind so that it will exit with a non-zero exit code when it detects a memory leak. Use an exit code of `125` to stay safely above any clar errors and safely below any shell errors.
-rw-r--r--.travis.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 569a6a7d4..64ecfdd62 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -67,7 +67,7 @@ script:
# Run Tests
after_success:
- - if [ "$TRAVIS_OS_NAME" = "linux" -a -n "$VALGRIND" ]; then valgrind --leak-check=full --show-reachable=yes --suppressions=./libgit2_clar.supp _build/libgit2_clar -ionline; fi
+ - if [ "$TRAVIS_OS_NAME" = "linux" -a -n "$VALGRIND" ]; then valgrind --leak-check=full --show-reachable=yes --error-exitcode=125 --suppressions=./libgit2_clar.supp _build/libgit2_clar -ionline; fi
# Only watch the development and master branches
branches: