Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
b5ae83bf
Unverified
Commit
b5ae83bf
authored
Oct 31, 2018
by
Edward Thomson
Committed by
GitHub
Oct 31, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4860 from tiennou/ci/macos-leaks
CI: Fix macOS leak detection
parents
79558009
8c49b3bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
ci/test.sh
+1
-1
tests/main.c
+7
-0
No files found.
ci/test.sh
View file @
b5ae83bf
...
...
@@ -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
leaks -quiet -atExit -- nohup
"
LEAKS
=
"MallocStackLogging=1 MallocScribble=1
MallocLogFile=/dev/null CLAR_AT_EXIT=
\"
leaks -quiet
\$
PPID
\"
"
cleanup
()
{
echo
"Cleaning up..."
...
...
tests/main.c
View file @
b5ae83bf
...
...
@@ -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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment