timeout.sh (273771) | timeout.sh (298879) |
---|---|
1# $FreeBSD: head/usr.bin/timeout/tests/timeout.sh 273771 2014-10-28 10:39:41Z bapt $ | 1# $FreeBSD: head/usr.bin/timeout/tests/timeout.sh 298879 2016-05-01 16:13:05Z pfg $ |
2 3atf_test_case nominal 4nominal_head() 5{ 6 atf_set "descr" "Basic tests on timeout(1) utility" 7} 8 9nominal_body() --- 68 unchanged lines hidden (view full) --- 78 -x timeout 5 sh -c \'exit 2\' 79 80 atf_check \ 81 -o empty \ 82 -e empty \ 83 -s exit:124 \ 84 -x timeout .1 sleep 1 85 | 2 3atf_test_case nominal 4nominal_head() 5{ 6 atf_set "descr" "Basic tests on timeout(1) utility" 7} 8 9nominal_body() --- 68 unchanged lines hidden (view full) --- 78 -x timeout 5 sh -c \'exit 2\' 79 80 atf_check \ 81 -o empty \ 82 -e empty \ 83 -s exit:124 \ 84 -x timeout .1 sleep 1 85 |
86 # With preserv status exit shoudl be 128 + TERM aka 143 | 86 # With preserv status exit should be 128 + TERM aka 143 |
87 atf_check \ 88 -o empty \ 89 -e empty \ 90 -s exit:143 \ 91 -x timeout --preserve-status .1 sleep 10 92 93 atf_check \ 94 -o empty \ --- 121 unchanged lines hidden --- | 87 atf_check \ 88 -o empty \ 89 -e empty \ 90 -s exit:143 \ 91 -x timeout --preserve-status .1 sleep 10 92 93 atf_check \ 94 -o empty \ --- 121 unchanged lines hidden --- |