blob: 2ba0fbaabcd6877ca7c96136a1170c634d392ad9 [file] [log] [blame]
Elliott Hughesd35df492017-02-15 15:19:05 -08001#!/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
11syscall=$NAME
12run_prog > /dev/null
13sample=$syscall.sample
14> "$sample"
15run_strace -ve$syscall -P$sample -a21 $args > "$OUT"
16match_diff "$LOG" "$OUT"
17rm -f "$OUT"
18
19exit 0