Home | History | Annotate | Download | only in tests
      1 #!/bin/sh -efu
      2 
      3 . "${srcdir=.}/scno_tampering.sh"
      4 
      5 : ${IOCTL_INJECT_START=256}
      6 : ${IOCTL_INJECT_RETVAL=8}
      7 
      8 run_prog
      9 run_strace -a16 -e trace=ioctl \
     10 	-e inject=ioctl:retval="${IOCTL_INJECT_RETVAL}":when="${IOCTL_INJECT_START}+" \
     11 	../ioctl_evdev-success "${IOCTL_INJECT_START}" "${IOCTL_INJECT_RETVAL}"> "$EXP"
     12 grep -v '^ioctl([012][,<]' < "$LOG" > "$OUT"
     13 match_diff "$OUT" "$EXP"
     14