diff --git a/tests/test-all b/tests/test-all index 5e32be3..306d46e 100755 --- a/tests/test-all +++ b/tests/test-all @@ -9,3 +9,13 @@ set -x "$here"/test-supported "$here"/test-queries "$here"/test-random + +if [ -v COVERAGE ]; then + # Do at most 10 seconds of failmalloc testing + "$here"/test-failmalloc || true + now=$(date +%s) + in_10s=$((now+10)) + while [ $(date +%s) -lt $in_10s ]; do + "$here"/test-failmalloc || true + done +fi