summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-07-25 01:04:55 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2018-07-26 15:34:53 +0100
commit6eb97b6ba93019741e7cf6147f0fab05dd3f831d (patch)
treec9bb921679795886b2585793bcfbd102074813a0
parent230eeda8e464a4675e82007d0c505617a6c243ed (diff)
downloadlibgit2-6eb97b6ba93019741e7cf6147f0fab05dd3f831d.tar.gz
ci: dissociate test from leaks process
The leaks process is not good about handling children. Ensure that its child is `nohup`ed so that the grandparent shell won't wait for it to exit.
-rwxr-xr-xci/test.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/ci/test.sh b/ci/test.sh
index 013476aa0..28f76029a 100755
--- a/ci/test.sh
+++ b/ci/test.sh
@@ -12,7 +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 --"
+LEAKS="MallocStackLogging=1 MallocScribble=1 leaks -quiet -atExit -- nohup"
cleanup() {
echo "Cleaning up..."
@@ -47,7 +47,6 @@ run_test() {
RUNNER="$VALGRIND $TEST_CMD"
elif [ "$LEAK_CHECK" = "leaks" ]; then
RUNNER="$LEAKS $TEST_CMD"
- echo $RUNNER
else
RUNNER="$TEST_CMD"
fi