Commit b00672b9e404adb771601408d4b02711085d6f90

Edward Thomson 2018-07-20T19:47:40

ci: enable leak checking on osx

diff --git a/.vsts-ci.yml b/.vsts-ci.yml
index 57e56b7..ace22f4 100644
--- a/.vsts-ci.yml
+++ b/.vsts-ci.yml
@@ -76,6 +76,7 @@ phases:
     displayName: Test
     env:
       TMPDIR: $(Agent.TempDirectory)
+      LEAK_CHECK: leaks
 
 - phase: windows_vs_amd64
   displayName: 'Windows (Visual Studio; amd64)'
diff --git a/ci/setup-macos.sh b/ci/setup-macos.sh
index a906691..564910e 100755
--- a/ci/setup-macos.sh
+++ b/ci/setup-macos.sh
@@ -4,3 +4,5 @@ set -x
 
 brew update
 brew install pkgconfig zlib curl openssl libssh2
+
+ln -s /Applications/Xcode.app/Contents/Developer/usr/lib/libLeaksAtExit.dylib /usr/local/lib
diff --git a/script/install-deps-osx.sh b/script/install-deps-osx.sh
index 94314db..8b88f84 100755
--- a/script/install-deps-osx.sh
+++ b/script/install-deps-osx.sh
@@ -7,3 +7,5 @@ brew install zlib
 brew install curl
 brew install openssl
 brew install libssh2
+
+ln -s /Applications/Xcode.app/Contents/Developer/usr/lib/libLeaksAtExit.dylib /usr/local/lib