toolkit/func/core/pkg_coreutils/19-timeout.sh
2021-07-04 23:50:25 -07:00

5 lines
151 B
Bash
Executable file

#!/bin/bash
r_log "coreutils" "Testing timeout and sleep"
timeout 1 sleep 1
[ $? -eq 124 ] && timeout 2 sleep 2
[ $? -eq 124 ] && r_checkExitStatus $?