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