diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2018-07-20 17:20:15 -0700 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-07-26 15:34:53 +0100 |
commit | 7f12c12394ce3f5b76a32a312461e95fe9e78ce7 (patch) | |
tree | 78ff15d808bbde45458ef3d59aae7dcbb82495f7 | |
parent | 219512e7989340d9efae8480fb79c08b91724014 (diff) | |
download | libgit2-7f12c12394ce3f5b76a32a312461e95fe9e78ce7.tar.gz |
ci: xcode leaks leak-checking
-rwxr-xr-x | ci/test.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ci/test.sh b/ci/test.sh index fe46fdbf0..361479b68 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -12,6 +12,7 @@ TMPDIR=${TMPDIR:-/tmp} USER=${USER:-$(whoami)} 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 leaks -quiet -atExit --" cleanup() { echo "Cleaning up..." @@ -38,6 +39,9 @@ run_test() { if [ "$LEAK_CHECK" = "valgrind" ]; then RUNNER="$VALGRIND $TEST_CMD" + elif [ "$LEAK_CHECK" = "leaks" ]; then + RUNNER="$LEAKS $TEST_CMD" + echo $RUNNER else RUNNER="$TEST_CMD" fi |