summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-10-31 08:47:10 +0000
committerGitHub <noreply@github.com>2018-10-31 08:47:10 +0000
commitb5ae83bfac53fa3a17435ebf2fc3b79db8055dae (patch)
treed842a2c29c9c8e73d9c169800741cdd5279ba064 /tests
parent795580095a5b04ae81be4affb24bd9ea4b69d068 (diff)
parent8c49b3bf26f4334f90dadf42685c95b356a7a0a3 (diff)
downloadlibgit2-b5ae83bfac53fa3a17435ebf2fc3b79db8055dae.tar.gz
Merge pull request #4860 from tiennou/ci/macos-leaks
CI: Fix macOS leak detection
Diffstat (limited to 'tests')
-rw-r--r--tests/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/main.c b/tests/main.c
index b4fccecc4..00b2bae02 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -8,6 +8,7 @@ int main(int argc, char *argv[])
#endif
{
int res;
+ char *at_exit_cmd;
clar_test_init(argc, argv);
@@ -28,5 +29,11 @@ int main(int argc, char *argv[])
cl_global_trace_disable();
git_libgit2_shutdown();
+ at_exit_cmd = getenv("CLAR_AT_EXIT");
+ if (at_exit_cmd != NULL) {
+ int at_exit = system(at_exit_cmd);
+ return res || at_exit;
+ }
+
return res;
}