strace/tests/adjtimex.test
Dmitry V. Levin 7fce7c0332 tests: extend coverage of adjtimex syscall
* tests/adjtimex.c (main): Check decoding of NULL struct timex pointer.
Check decoding of struct timex located at the end of page boundary.
* tests/adjtimex.test: Update.
2016-02-08 18:16:27 +00:00

14 lines
198 B
Bash
Executable File

#!/bin/sh
# Check adjtimex syscall decoding.
. "${srcdir=.}/init.sh"
run_prog > /dev/null
OUT="$LOG.out"
run_strace -a 15 -e adjtimex $args > "$OUT"
match_grep "$LOG" "$OUT"
rm -f "$OUT"
exit 0