1#!/bin/sh 2 3# Check verbose decoding of 32-bit stat syscall. 4 5. "${srcdir=.}/init.sh" 6 7run_prog ./stat32 . > /dev/null 8 9check_prog dd 10check_prog touch 11 12OUT="$LOG.out" 13size=233811181 14sample=stat32_sample 15 16umask 022 17run_prog_skip_if_failed \ 18 dd seek=$size bs=1 count=0 if=/dev/null of=$sample 19 20run_prog_skip_if_failed \ 21 touch -t 0102030405 $sample 22 23for f in $sample . /dev/null; do 24 run_strace -v -efile ./stat32 $f > "$OUT" 25 match_grep "$LOG" "$OUT" 26done 27 28rm -f $sample "$OUT" 29 30exit 0 31