Blame tests/p_strace/5-test_strace.sh

Steve Barnes 464547
#!/bin/bash
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
Steve Barnes 464547
[ -z "${STRACE}" ] && { t_log "Failed to find strace. Cannot continue."; exit $FAIL; }
Steve Barnes 464547
Steve Barnes 464547
${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; }