summaryrefslogtreecommitdiff
path: root/tests/ioctl.test
blob: b1b40d9e3d9b540c29487e92676037ae0018a907 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# Check ioctl syscall decoding.

. "${srcdir=.}/init.sh"

check_prog grep
run_prog > /dev/null
run_strace -a16 -eioctl "$@" $args > "$EXP"
grep -v '^ioctl([012][,<]' < "$LOG" > "$OUT"
match_diff "$OUT" "$EXP"