1 #!/bin/sh 2 3 # Check fstat syscall decoding. 4 5 . "${srcdir=.}/init.sh" 6 7 # strace -P is implemented using /proc/self/fd 8 [ -d /proc/self/fd/ ] || 9 framework_skip_ '/proc/self/fd/ is not available' 10 11 syscall=$NAME 12 run_prog > /dev/null 13 sample=$syscall.sample 14 > "$sample" 15 run_strace -ve$syscall -P$sample -a21 $args > "$OUT" 16 match_diff "$LOG" "$OUT" 17 rm -f "$OUT" 18 19 exit 0 20