Dmitry V. Levin
ba35137246
* configure.ac (AC_CHECK_FUNCS): Add ioctl_rtc. * tests/ioctl_rtc.c: New file. * tests/ioctl_rtc-v.c: Likewise. * tests/ioctl_rtc.test: New test. * tests/ioctl_rtc-v.test: Likewise. * tests/.gitignore: Add ioctl_rtc and ioctl_rtc-v. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add ioctl_rtc.test and ioctl_rtc-v.test.
13 lines
243 B
Bash
Executable File
13 lines
243 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check verbose decoding of RTC_* ioctls.
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
run_prog > /dev/null
|
|
run_strace -a16 -veioctl $args > "$EXP"
|
|
check_prog grep
|
|
grep -v '^ioctl([012],' < "$LOG" > "$OUT"
|
|
match_diff "$OUT" "$EXP"
|
|
rm -f "$EXP" "$OUT"
|