Improve valgrind suppressions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
diff --git a/.travis.yml b/.travis.yml
index 32b1446..f0fd51c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -33,13 +33,13 @@ script:
# Run Tests
after_success:
- - valgrind --leak-check=full --show-reachable=yes --suppressions=../libgit2_clar.supp ./libgit2_clar -ionline
+ - valgrind --num-callers=30 --leak-check=full --show-reachable=yes --suppressions=../libgit2_clar.supp ./libgit2_clar -ionline
# Only watch the development branch
branches:
only:
- development
-
+
# Notify development list when needed
notifications:
irc:
diff --git a/libgit2_clar.supp b/libgit2_clar.supp
index b0c9c68..8942fec 100644
--- a/libgit2_clar.supp
+++ b/libgit2_clar.supp
@@ -1,22 +1,44 @@
{
- ignore-zlib-errors-cond
- Memcheck:Cond
- obj:*libz.so*
+ ignore-zlib-errors-cond
+ Memcheck:Cond
+ obj:*libz.so*
}
{
- ignore-giterr-set-leak
- Memcheck:Leak
- ...
- fun:giterr_set
+ ignore-giterr-set-leak
+ Memcheck:Leak
+ ...
+ fun:giterr_set
+}
+
+{
+ ignore-git-global-state-leak
+ Memcheck:Leak
+ ...
+ fun:git__global_state
}
{
+ ignore-openssl-ssl-leak
+ Memcheck:Leak
...
obj:*libssl.so*
+ ...
+ fun:ssl_setup
}
{
+ ignore-openssl-crypto-leak
+ Memcheck:Leak
...
obj:*libcrypto.so*
+ ...
+ fun:ssl_setup
+}
+
+{
+ ignore-openssl-crypto-cond
+ Memcheck:Cond
+ obj:*libcrypto.so*
+ ...
}