strace/tests/pread64-pwrite64.test
Dmitry V. Levin 7b5d8f98fc tests/pread64-pwrite64.test: extend dumpio coverage
* tests/pread64-pwrite64.c (dump_str, print_hex, test_dump):
New functions.
(main): Use them to test dumping of various data.
* tests/pread64-pwrite64.test: Update.
2016-04-02 18:27:44 +00:00

19 lines
401 B
Bash
Executable File

#!/bin/sh
# Check decoding and dumping of pread64 and pwrite64 syscalls.
. "${srcdir=.}/init.sh"
# strace -P is implemented using /proc/self/fd
[ -d /proc/self/fd/ ] ||
framework_skip_ '/proc/self/fd/ is not available'
tmpfile=pread64-pwrite64-tmpfile
> $tmpfile
run_strace_match_diff \
-a21 -eread=0 -ewrite=1 -e trace=pread64,pwrite64 \
-P $tmpfile -P /dev/zero -P /dev/null
rm -f $tmpfile