func/core/pkg_coreutils/19-timeout.sh
2024-08-14 20:52:26 -07:00

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