• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2
3# Check decoding of utime syscall.
4
5. "${srcdir=.}/init.sh"
6
7$STRACE -e utime -h > /dev/null ||
8	        skip_ 'utime syscall is not supported on this architecture'
9
10OUT="$LOG.out"
11run_prog > /dev/null
12run_strace -e utime $args > "$OUT"
13
14check_prog grep
15LC_ALL=C grep -x "utime(.*" "$LOG" > /dev/null || {
16	rm -f "$OUT"
17	skip_ 'test executable does not use utime syscall'
18}
19match_diff "$LOG" "$OUT"
20
21rm -f "$OUT"
22
23exit 0
24