#!/bin/sh

# Check truncate syscall decoding.

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

run_prog > /dev/null
OUT="$LOG.out"
run_strace -etruncate $args > "$OUT"
match_diff "$LOG" "$OUT"
rm -f "$OUT"

exit 0