strace/tests/ppoll.test
Dmitry V. Levin 579a4aae8a tests: introduce $NAME
* tests/init.sh (NAME): New variable, defined to ${ME_%.test}.
(run_prog, match_awk, match_diff, match_grep): Replace ${ME_%.test}
with $NAME.
* tests/fcntl.test: Likewise.
* tests/fstat.test: Likewise.
* tests/mmap.test: Likewise.
* tests/net-y-unix.test: Likewise.
* tests/net-yy-inet.test: Likewise.
* tests/net-yy-unix.test: Likewise.
* tests/open.test: Likewise.
* tests/openat.test: Likewise.
* tests/poll.test: Likewise.
* tests/ppoll.test: Likewise.
* tests/readlink.test: Likewise.
* tests/select.test: Likewise.
* tests/statx.sh: Likewise.
* tests/uname.test: Likewise.
2016-03-30 00:13:56 +00:00

14 lines
215 B
Bash
Executable File

#!/bin/sh
# Check ppoll syscall decoding.
. "${srcdir=.}/init.sh"
run_prog
run_strace -a30 -s2 -e ppoll $args
match_grep
run_strace -a30 -v -s2 -e ppoll $args
match_grep "$LOG" "$srcdir/$NAME-v.expected"
exit 0