diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2018-07-20 17:20:15 -0700 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-09-08 19:28:52 +0100 |
commit | f44e9101e68533ff1c498fde757c07e57656bc8d (patch) | |
tree | 7306c1ef1888d0d7196df4f5e79933d48856aaad | |
parent | 7514b2dd00c6b6e4e2086229117f7d23e278e4a8 (diff) | |
download | libgit2-f44e9101e68533ff1c498fde757c07e57656bc8d.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 96adc3c34..ac7d38531 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 |