travis: test low memory conditions

This commit is contained in:
Colin Dellow 2018-07-05 20:07:37 -04:00
parent 25709ae098
commit 31eac8a88a
1 changed files with 10 additions and 0 deletions

View File

@ -9,3 +9,13 @@ set -x
"$here"/test-supported "$here"/test-supported
"$here"/test-queries "$here"/test-queries
"$here"/test-random "$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