* 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.
13 lines
263 B
Bash
Executable File
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"
|