File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ USER=${USER:-$(whoami)}
1414SUCCESS=1
1515
1616VALGRIND=" valgrind --leak-check=full --show-reachable=yes --error-exitcode=125 --num-callers=50 --suppressions=\" $SOURCE_DIR /libgit2_clar.supp\" "
17- LEAKS=" MallocStackLogging=1 MallocScribble=1 MallocLogFile=/dev/null leaks -quiet -atExit -- nohup "
17+ LEAKS=" MallocStackLogging=1 MallocScribble=1 MallocLogFile=/dev/null"
1818
1919cleanup () {
2020 echo " Cleaning up..."
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ int main(int argc, char *argv[])
88#endif
99{
1010 int res ;
11+ char * at_exit_cmd ;
1112
1213 clar_test_init (argc , argv );
1314
@@ -28,5 +29,11 @@ int main(int argc, char *argv[])
2829 cl_global_trace_disable ();
2930 git_libgit2_shutdown ();
3031
32+ at_exit_cmd = getenv ("CLAR_AT_EXIT" );
33+ if (at_exit_cmd != NULL ) {
34+ int at_exit = system (at_exit_cmd );
35+ return res || at_exit ;
36+ }
37+
3138 return res ;
3239}
You can’t perform that action at this time.
0 commit comments