strace/tests/ioctl_loop-nv.test
Eugene Syromyatnikov 23287f11fe tests: check non-verbose decoding of LOOP_* ioctls
* tests/ioctl_loop-nv.c: New file.
* tests/ioctl_loop-nv.test: New test.
* tests/ioctl_loop.c [!ABBREV] (ABBREV): Define to 0.
(print_loop_info, print_loop_info64): Handle [ABBREV != 0] case.
* tests/.gitignore: Add ioctl_loop-nv.
* tests/Makefile.am (check_PROGRAMS): Likewise.
2017-01-04 22:00:38 +00:00

13 lines
263 B
Bash
Executable File

#!/bin/sh
# Check non-verbose decoding of LOOP_* ioctls.
. "${srcdir=.}/init.sh"
run_prog > /dev/null
run_strace -a22 -eioctl -e verbose=none $args > "$EXP"
check_prog grep
grep -v '^ioctl([012],' < "$LOG" > "$OUT"
match_diff "$OUT" "$EXP"
rm -f "$EXP" "$OUT"