Home | History | Annotate | Download | only in tests
      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 
     10 OUT="$LOG.out"
     11 run_prog > /dev/null
     12 run_strace -e utime $args > "$OUT"
     13 
     14 check_prog grep
     15 LC_ALL=C grep -x "utime(.*" "$LOG" > /dev/null || {
     16 	rm -f "$OUT"
     17 	skip_ 'test executable does not use utime syscall'
     18 }
     19 match_diff "$LOG" "$OUT"
     20 
     21 rm -f "$OUT"
     22 
     23 exit 0
     24