1#!/bin/sh 2 3# Check -ff option. 4 5. "${srcdir=.}/init.sh" 6 7run_prog_skip_if_failed \ 8 kill -0 $$ 9 10./set_ptracer_any ./sleep 1 > "$OUT" & 11tracee_pid=$! 12 13while ! [ -s "$OUT" ]; do 14 kill -0 $tracee_pid 2> /dev/null || 15 fail_ 'set_ptracer_any sleep failed' 16done 17 18rm -f "$LOG".* 19run_strace -a14 -eexit_group -ff -p $tracee_pid 20 21# check that output matches 22match_diff "$LOG.$tracee_pid" 23 24# check that no other output files have been created 25set -- "$LOG".* 26[ "$LOG.$tracee_pid" = "$*" ] || 27 fail_ "too many output files: $*" 28 29rm -f "$OUT" "$LOG.$tracee_pid" 30