3 # Test against a memory leak.
5 (${CHECKER} .
/test-dprintf-posix2
${EXEEXT} 0
7 if test $result != 77 && test $result != 78 && test $result != 79 && test $result != 80 && test $result != 81; then result
=1; fi
11 if test $malloc_result = 77; then
12 echo "Skipping test: no way to determine address space size"
15 if test $malloc_result = 78; then
16 echo "Skipping test: cannot trust address space size on this platform"
19 if test $malloc_result = 79; then
20 echo "Skipping test: cannot trust address space size when running under QEMU"
23 if test $malloc_result = 80; then
24 echo "Skipping test: address sanitizer's malloc behaves differently"
28 ${CHECKER} .
/test-dprintf-posix2
${EXEEXT} 1 > /dev
/null
30 if test $result = 77; then
31 echo "Skipping test: no way to determine address space size"
34 if test $result != 0; then
38 if test $malloc_result = 81; then
39 echo "Skipping test: get_rusage_as() doesn't work"