Dmitry V. Levin
2aa9b32d81
* tests/read-write.c: New file. * tests/read-write.test: New test. * tests/.gitignore: Add read-write. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add read-write.test.
19 lines
383 B
Bash
Executable File
19 lines
383 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check decoding and dumping of read and write 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=read-write-tmpfile
|
|
> $tmpfile
|
|
|
|
run_strace_match_diff \
|
|
-a15 -eread=0 -ewrite=1 -e trace=read,write \
|
|
-P $tmpfile -P /dev/zero -P /dev/null
|
|
|
|
rm -f $tmpfile
|