strace/tests/sysinfo.test
Dmitry V. Levin b5a7011d71 tests: extend coverage of sysinfo syscall
* tests/sysinfo.c (main): Check decoding of NULL struct sysinfo pointer.
Check decoding of struct sysinfo located at the end of page boundary.
* tests/sysinfo.test: Update.
2016-02-08 18:17:28 +00:00

14 lines
196 B
Bash
Executable File

#!/bin/sh
# Check decoding of sysinfo syscall
. "${srcdir=.}/init.sh"
run_prog > /dev/null
OUT="$LOG.out"
run_strace -a14 -esysinfo $args > "$OUT"
match_diff "$LOG" "$OUT"
rm -f "$OUT"
exit 0