==== run-regress-sleep_test ==== cc -O2 -pipe -MD -MP -I/home/src/regress/lib/libc/sleep/../../../../lib/libc -c /home/src/regress/lib/libc/sleep/sleep_test.c /home/src/regress/lib/libc/sleep/sleep_test.c:58:9: warning: address of stack memory associated with local variable 'buf' returned [-Wreturn-stack-address] return buf; ^~~ 1 warning generated. cc -o sleep_test sleep_test.o [ x$(./sleep_test 1) = x0 ] || exit 1 file=$(mktemp -t sleep.XXXXXXXXXX); ./sleep_test 4 >$file & pid=$!; sleep 1; kill $pid; sleep 1; v=$(cat $file); rm -f $file; { [ $v -gt 0 ] && [ $v -lt 4 ] ; } || exit 2