spawn: Use special invocation for <spawn.h> on OS/2 kLIBC.
[gnulib.git] / tests / test-dprintf-posix2.sh
blob0fb38591d0dd44582d8c5d16b364800584792451
1 #!/bin/sh
3 # Test against a memory leak.
5 (${CHECKER} ./test-dprintf-posix2${EXEEXT} 0
6 result=$?
7 if test $result != 77 && test $result != 78; then result=1; fi
8 exit $result
9 ) 2>/dev/null
10 malloc_result=$?
11 if test $malloc_result = 77; then
12 echo "Skipping test: no way to determine address space size"
13 exit 77
16 ${CHECKER} ./test-dprintf-posix2${EXEEXT} 1 > /dev/null
17 result=$?
18 if test $result = 77; then
19 echo "Skipping test: no way to determine address space size"
20 exit 77
22 if test $result != 0; then
23 exit 1
26 if test $malloc_result = 78; then
27 echo "Skipping test: get_rusage_as() doesn't work"
28 exit 77
31 exit 0