summaryrefslogtreecommitdiff
path: root/tests/strace-f
blob: 869f331df78c4d3dcf2c46a72c74b101047a3da2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# Ensure that strace -f works.

. "${srcdir=.}/init.sh"

check_strace
check_prog timeout
time=/usr/bin/time
check_prog $time

timeout -s 9 9 \
$STRACE -f $time /bin/ls > check.log 2>&1 ||
	{ cat check.log; fail_ 'strace -f does not work'; }