Lines Matching +full:failmalloc +full:- +full:1
2 # Use Failmalloc to test behaviour in the face of out-of-memory conditions.
3 # The test runs a binary multiple times while configuring Failmalloc to fail a
5 # due to segfaults. See https://www.nongnu.org/failmalloc/
15 if [ "$1" = "-v" ] ; then
16 VERBOSE=1
25 if [ -e .libs/lt-test-value ]; then
27 # would be interfered with by libfailmalloc. Instead, use the special lt-
29 BINARY_PREFIX=".libs/lt-"
33 # FIXME: auto-determine #iterations by comparing the output of each run
37 iterations="$1"
42 test "$VERBOSE" = 1 && { echo "$n"; set -x; }
45 test "$VERBOSE" = 1 && set +x;
46 if test "$s" -ge 128; then
51 exit 1
61 failmalloc_binary_test 500 test-value
62 failmalloc_binary_test 300 test-mem
65 failmalloc_binary_test 500 test-parse$EXEEXT "$f"
66 # N.B., test-parse$EXEEXT --swap-byte-order doesn't test any new paths