Add check-failmalloc.sh to test OOM conditions.
authorDan Fandrich <dan@coneharvesters.com>
Sat, 10 Nov 2018 13:16:47 +0000 (14:16 +0100)
committerDan Fandrich <dan@coneharvesters.com>
Sat, 10 Nov 2018 15:04:53 +0000 (16:04 +0100)
commitb064346eb31d1b935209f34ec4fe2c2ca0e2a718
tree6f2dbd51ff33e396ab66fdb6d4c90d54e7cd3bea
parenta459ed1dca57612ef13880e8d78037db2f089f13
Add check-failmalloc.sh to test OOM conditions.

This requires Failmalloc, a library that can be used along with glibc to
cause malloc calls to fail in a defined way. Configure will search for
libfailmalloc.so.0 in the usual places by default, or in a
user-specified location. The tests are skipped if it's not available.
Enable Failmalloc on the Travis coverage build.
.travis.yml
configure.ac
m4m/failmalloc.m4 [new file with mode: 0644]
test/Makefile.am
test/check-failmalloc.sh [new file with mode: 0755]
test/check-vars.sh.in [new file with mode: 0644]