Commit 8c49b3bf26f4334f90dadf42685c95b356a7a0a3

Etienne Samson 2018-10-30T22:32:57

tests: use CLAR_AT_EXIT to check for leaks on macOS

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/ci/test.sh b/ci/test.sh
index a9d6071..d45a78f 100755
--- a/ci/test.sh
+++ b/ci/test.sh
@@ -14,7 +14,7 @@ USER=${USER:-$(whoami)}
 SUCCESS=1
 
 VALGRIND="valgrind --leak-check=full --show-reachable=yes --error-exitcode=125 --num-callers=50 --suppressions=\"$SOURCE_DIR/libgit2_clar.supp\""
-LEAKS="MallocStackLogging=1 MallocScribble=1 MallocLogFile=/dev/null"
+LEAKS="MallocStackLogging=1 MallocScribble=1 MallocLogFile=/dev/null CLAR_AT_EXIT=\"leaks -quiet \$PPID\""
 
 cleanup() {
 	echo "Cleaning up..."