toolkit/func/core/pkg_coreutils/19-timeout.sh

6 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 $?