strace/tests/sendfile64.test
Dmitry V. Levin 49182851eb tests: add sendfile.test and sendfile64.test
* tests/sendfile.c: New file.
* tests/sendfile64.c: New file.
* tests/sendfile.test: New test.
* tests/sendfile64.test: New test.
* tests/Makefile.am (check_PROGRAMS): Add sendfile and sendfile64.
(TESTS): Add sendfile.test and sendfile64.test.
* tests/.gitignore: Add sendfile and sendfile64.
2015-08-19 14:15:07 +00:00

15 lines
230 B
Bash
Executable File

#!/bin/sh
# Check sendfile64 syscall decoding.
. "${srcdir=.}/init.sh"
exe="./${ME_%.test}"
run_prog "$exe" "$exe" > /dev/null
OUT="$LOG.out"
run_strace -esendfile64 $args > "$OUT"
match_grep "$LOG" "$OUT"
rm -f "$OUT"
exit 0