strace/tests/splice.test
Dmitry V. Levin 16a52b4b87 Fix printing of negative offsets in splice syscall
* 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.
2016-02-14 00:36:38 +00:00

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"