bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone
Blob Blame History Raw
#!/bin/bash
# Author: Steve Barnes (steve@echo.id.au)

t_Log "Running $0 - checking strace runs and returns non-zero exit status."

STRACE=`which strace`

[ "$STRACE" ] || { t_log "Failed to find strace. Cannot continue."; exit $FAIL; }

$STRACE ls &>/dev/null

[ $? -eq 0 ] || { t_log "Strace exited with non-zero status. That ain't good..."; exit $FAIL; }