#!/bin/sh

# Check decoding of fadvise64 syscall.

. "${srcdir=.}/init.sh"

run_prog > /dev/null
run_strace -e $NAME $args > "$EXP"
check_prog grep
grep -v "^$NAME([0123]," < "$LOG" > "$OUT"
match_diff "$OUT" "$EXP"