strace/tests/readv.test
Dmitry V. Levin 4774f8239b tests: extend coverage of struct iovec arrays
* tests/readv.c (main): Check decoding of empty, inaccessible,
and partially inaccessible iovec arrays.
* tests/readv.test: Update.
2016-02-14 00:36:38 +00:00

14 lines
231 B
Bash
Executable File

#!/bin/sh
# Check decoding of readv and writev syscalls.
. "${srcdir=.}/init.sh"
run_prog > /dev/null
OUT="$LOG.out"
run_strace -a16 -eread=0 -ewrite=1 -ereadv,writev $args > "$OUT"
match_diff "$LOG" "$OUT"
rm -f "$OUT"
exit 0