Dmitry V. Levin
49182851eb
* 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.
15 lines
230 B
Bash
Executable File
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
|