Dmitry V. Levin
f60347d857
Run each test using a wrapper that does all necessary timeout checks. * tests/run.sh: New file. * tests/Makefile.am (EXTRA_DIST, LOG_COMPILER): Add it. * tests/init.sh (check_strace, check_timeout): Remove. * tests/detach-stopped: Update callers. * tests/net: Likewise. * tests/ptrace_setoptions: Likewise. * tests/qual_syscall: Likewise. * tests/stat: Likewise. * tests/strace-f: Likewise.
13 lines
215 B
Bash
Executable File
13 lines
215 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
$STRACE -V > /dev/null ||
|
|
framework_failure_ "$STRACE is not available"
|
|
|
|
TIMEOUT="timeout -s 9 $TIMEOUT_DURATION"
|
|
$TIMEOUT true > /dev/null 2>&1 ||
|
|
TIMEOUT=
|
|
|
|
exec $TIMEOUT "$@"
|