blob: 506b4406b1421d2f84d4bf14169ac1cf524dce90 [file] [log] [blame]
Dmitry V. Levinc8638272015-12-05 00:02:44 +00001#!/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
Dmitry V. Levin579a4aa2016-03-30 00:13:56 +000011syscall=$NAME
Dmitry V. Levinc8638272015-12-05 00:02:44 +000012run_prog > /dev/null
Dmitry V. Levinc8638272015-12-05 00:02:44 +000013sample=$syscall.sample
14> "$sample"
15run_strace -ve$syscall -P$sample $args > "$OUT"
16match_diff "$LOG" "$OUT"
17rm -f "$OUT"
18
19exit 0