travis: use a valgrind suppressions file

We don't care about the supposed zlib errors, and the leak from
giterr_set isn't interesting, as it gets freed each time an error is
set.

Give valgrind a suppressions file so it doesn't tell us about them.
This commit is contained in:
Carlos Martín Nieto 2012-09-04 15:54:33 +02:00
parent 925be045d5
commit 064ee42d99
2 changed files with 13 additions and 1 deletions

View File

@ -32,7 +32,7 @@ script:
# Run Tests
after_script:
- ctest -V .
- if [ -f ./libgit2_clar ]; then valgrind --leak-check=full --show-reachable=yes ./libgit2_clar; else echo "Skipping valgrind"; fi
- if [ -f ./libgit2_clar ]; then valgrind --leak-check=full --show-reachable=yes --suppressions=../libgit2_clar.supp ./libgit2_clar; else echo "Skipping valgrind"; fi
# Only watch the development branch
branches:

12
libgit2_clar.supp Normal file
View File

@ -0,0 +1,12 @@
{
ignore-zlib-errors-cond
Memcheck:Cond
obj:*libz.so*
}
{
ignore-giterr-set-leak
Memcheck:Leak
...
fun:giterr_set
}