Home | History | Annotate | Download | only in tests
      1 #!/bin/sh
      2 
      3 . "${srcdir=.}/init.sh"
      4 
      5 $STRACE -V > /dev/null ||
      6 	framework_failure_ "$STRACE is not available"
      7 
      8 TIMEOUT="timeout -k 5 -s XCPU $TIMEOUT_DURATION"
      9 $TIMEOUT true > /dev/null 2>&1 ||
     10 	TIMEOUT=
     11 
     12 if [ $# -eq 0 ]; then
     13 	echo 'No command or test-file specified' >&2
     14 	exit 1
     15 fi
     16 
     17 exec $TIMEOUT "$@" < /dev/null
     18