From 31eac8a88ac62c7ccf5f5f8e6dfdb0fef9480d75 Mon Sep 17 00:00:00 2001 From: Colin Dellow Date: Thu, 5 Jul 2018 20:07:37 -0400 Subject: [PATCH] travis: test low memory conditions --- tests/test-all | 10 ++++++++++ 1 file changed, 10 insertions(+) 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