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