1#!/bin/sh -efu 2# Check handling of CLONE_PTRACE'ed processes. 3. "${srcdir=.}/init.sh" 4 5run_prog > /dev/null 3>&1 6args="-e trace=none $args" 7> "$LOG" || fail_ "failed to write $LOG" 8 9$STRACE -o "$LOG" $args > "$EXP" 2> "$OUT"-err 3> "$EXP"-err || { 10 msg="$STRACE $args failed with code $?" 11 cat "$OUT"-err "$LOG" >&2 12 fail_ "$msg" 13} 14 15cat "$OUT"-err >&2 16match_diff "$LOG" "$EXP" 17match_diff "$OUT"-err "$EXP"-err 18