Dmitry V. Levin
16a52b4b87
* io.c (SYS_FUNC(splice)): Use PRId64 instead of PRIu64 for printing offsets. * tests/splice.c: New file. * tests/splice.test: New test. * tests/.gitignore: Add splice. * tests/Makefile.am (check_PROGRAMS): Likewise. (TESTS): Add splice.test.
12 lines
179 B
Bash
Executable File
12 lines
179 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check splice syscall decoding.
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
run_prog > /dev/null
|
|
OUT="$LOG.out"
|
|
run_strace -esplice $args > "$OUT"
|
|
match_diff "$LOG" "$OUT"
|
|
rm -f "$OUT"
|