Dmitry V. Levin | 2aa9b32 | 2016-04-03 16:37:43 +0000 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | # Check decoding and dumping of read and write syscalls. | ||||
4 | |||||
5 | . "${srcdir=.}/init.sh" | ||||
6 | |||||
7 | # strace -P is implemented using /proc/self/fd | ||||
8 | [ -d /proc/self/fd/ ] || | ||||
9 | framework_skip_ '/proc/self/fd/ is not available' | ||||
10 | |||||
11 | tmpfile=read-write-tmpfile | ||||
12 | > $tmpfile | ||||
13 | |||||
14 | run_strace_match_diff \ | ||||
15 | -a15 -eread=0 -ewrite=1 -e trace=read,write \ | ||||
16 | -P $tmpfile -P /dev/zero -P /dev/null | ||||
17 | |||||
18 | rm -f $tmpfile |