5 # Copyright (c) 2016-2018 The strace developers.
8 # SPDX-License-Identifier: GPL-2.0-or-later
10 . "${srcdir=.}/init.sh"
12 run_prog_skip_if_failed \
15 ../set_ptracer_any ../sleep 3 > "$OUT" &
18 while ! [ -s "$OUT" ]; do
19 kill -0 $tracee_pid 2> /dev/null ||
20 fail_ 'set_ptracer_any sleep failed'
23 run_strace -a14 -eexit_group -ff -p $tracee_pid
25 # check that output matches
26 match_diff "$LOG.$tracee_pid"
28 # check that no other output files have been created
30 [ "$LOG.$tracee_pid" = "$*" ] ||
31 fail_ "too many output files: $*"