Home | History | Annotate | Download | only in tests
      1 #!/bin/sh
      2 
      3 # Check decoding of utimensat syscall.
      4 
      5 . "${srcdir=.}/init.sh"
      6 
      7 run_prog > /dev/null
      8 OUT="$LOG.out"
      9 run_strace -e utimensat $args > "$OUT"
     10 
     11 check_prog grep
     12 LC_ALL=C grep -x "utimensat(.*" "$LOG" > /dev/null || {
     13         rm -f "$OUT"
     14         skip_ 'test executable does not use utimensat syscall'
     15 }
     16 
     17 match_diff "$LOG" "$OUT"
     18 
     19 rm -f "$OUT"
     20 
     21 exit 0
     22