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=${ME_%.test} 12 run_prog > /dev/null 13 OUT="$LOG.out" 14 sample=$syscall.sample 15 > "$sample" 16 run_strace -ve$syscall -P$sample $args > "$OUT" 17 match_diff "$LOG" "$OUT" 18 rm -f "$OUT" 19 20 exit 0 21