bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_strace/5-test_strace.sh

Steve Barnes 464547
#!/bin/bash
root 2bfd68
# Author: Steve Barnes (steve@echo.id.au)
Steve Barnes 464547
Steve Barnes 464547
t_Log "Running $0 - checking strace runs and returns non-zero exit status."
Steve Barnes 464547
Steve Barnes 464547
STRACE=`which strace`
Steve Barnes 464547
root 2bfd68
[ "$STRACE" ] || { t_log "Failed to find strace. Cannot continue."; exit $FAIL; }
Steve Barnes 464547
root 2bfd68
$STRACE ls &>/dev/null
Steve Barnes 464547
Steve Barnes 464547
[ $? -eq 0 ] || { t_log "Strace exited with non-zero status. That ain't good..."; exit $FAIL; }