robsd-exec: timeout 3600s + . /usr/local/libexec/robsd/util-regress.sh + config_load + << "EOF" + _err=0 + _env=REGRESS_FAIL_EARLY=no + config_value regress-lib/libc/sleep-env + 2> /dev/null + _env=REGRESS_FAIL_EARLY=no GOCACHE=/tmp + _make=make -C /home/src/regress/lib/libc/sleep REGRESS_FAIL_EARLY=no GOCACHE=/tmp + config_value regress-lib/libc/sleep-targets + regress_root lib/libc/sleep + export SUDO + unpriv -c staff build exec make -C /home/src/regress/lib/libc/sleep REGRESS_FAIL_EARLY=no GOCACHE=/tmp regress ==== 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