]> granicus.if.org Git - strace/blob - tests/strace-ff.test
Remove XLAT_END
[strace] / tests / strace-ff.test
1 #!/bin/sh
2 #
3 # Check -ff option.
4 #
5 # Copyright (c) 2016-2018 The strace developers.
6 # All rights reserved.
7 #
8 # SPDX-License-Identifier: GPL-2.0-or-later
9
10 . "${srcdir=.}/init.sh"
11
12 run_prog_skip_if_failed \
13         kill -0 $$
14
15 ../set_ptracer_any ../sleep 3 > "$OUT" &
16 tracee_pid=$!
17
18 while ! [ -s "$OUT" ]; do
19         kill -0 $tracee_pid 2> /dev/null ||
20                 fail_ 'set_ptracer_any sleep failed'
21 done
22
23 run_strace -a14 -eexit_group -ff -p $tracee_pid
24
25 # check that output matches
26 match_diff "$LOG.$tracee_pid"
27
28 # check that no other output files have been created
29 set -- "$LOG".*
30 [ "$LOG.$tracee_pid" = "$*" ] ||
31         fail_ "too many output files: $*"