blob: 506b4406b1421d2f84d4bf14169ac1cf524dce90 [file] [log] [blame]
#!/bin/sh
# Check fstat syscall decoding.
. "${srcdir=.}/init.sh"
# strace -P is implemented using /proc/self/fd
[ -d /proc/self/fd/ ] ||
framework_skip_ '/proc/self/fd/ is not available'
syscall=$NAME
run_prog > /dev/null
sample=$syscall.sample
> "$sample"
run_strace -ve$syscall -P$sample $args > "$OUT"
match_diff "$LOG" "$OUT"
rm -f "$OUT"
exit 0