]> granicus.if.org Git - strace/blob - tests/run.sh
Remove XLAT_END
[strace] / tests / run.sh
1 #!/bin/sh
2 #
3 # Copyright (c) 2013-2018 The strace developers.
4 # All rights reserved.
5 #
6 # SPDX-License-Identifier: GPL-2.0-or-later
7
8 . "${srcdir=.}/init.sh"
9
10 $STRACE -V > /dev/null ||
11         framework_failure_ "$STRACE is not available"
12
13 TIMEOUT="timeout -k 5 -s XCPU $TIMEOUT_DURATION"
14 $TIMEOUT true > /dev/null 2>&1 ||
15         TIMEOUT=
16
17 if [ $# -eq 0 ]; then
18         echo 'No command or test-file specified' >&2
19         exit 1
20 fi
21
22 exec $TIMEOUT "$@" < /dev/null