Mercurial > gnulib
comparison tests/test-printf-posix2.sh @ 40221:8c1a17df67e0
tests: Prepare for using valgrind.
tests/*.sh: Invoke all test programs through ${CHECKER}.
tests/*/*.sh: Likewise.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 10 Mar 2019 11:32:11 +0100 |
parents | 1df2e8a2fa66 |
children |
comparison
equal
deleted
inserted
replaced
40220:2796695e9216 | 40221:8c1a17df67e0 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 # Test out-of-memory handling. | 3 # Test out-of-memory handling. |
4 | 4 |
5 (./test-printf-posix2${EXEEXT} 0 | 5 (${CHECKER} ./test-printf-posix2${EXEEXT} 0 |
6 result=$? | 6 result=$? |
7 if test $result != 77 && test $result != 78; then result=1; fi | 7 if test $result != 77 && test $result != 78; then result=1; fi |
8 exit $result | 8 exit $result |
9 ) 2>/dev/null | 9 ) 2>/dev/null |
10 malloc_result=$? | 10 malloc_result=$? |
13 exit 77 | 13 exit 77 |
14 fi | 14 fi |
15 | 15 |
16 for arg in 1 2 3 4 5 6 | 16 for arg in 1 2 3 4 5 6 |
17 do | 17 do |
18 ./test-printf-posix2${EXEEXT} $arg > /dev/null | 18 ${CHECKER} ./test-printf-posix2${EXEEXT} $arg > /dev/null |
19 result=$? | 19 result=$? |
20 if test $result = 77; then | 20 if test $result = 77; then |
21 echo "Skipping test: getrlimit and setrlimit don't work" | 21 echo "Skipping test: getrlimit and setrlimit don't work" |
22 exit 77 | 22 exit 77 |
23 fi | 23 fi |