START lib/libc/sleep 2024-04-15T18:39:53Z ==== run-regress-sleep_test ==== cc -O2 -pipe -MD -MP -I/usr/src/regress/lib/libc/sleep/../../../../lib/libc -c /usr/src/regress/lib/libc/sleep/sleep_test.c /usr/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 PASS lib/libc/sleep Duration 0m03.85s