Cleanup poll/ppoll decoders
* poll.c (decode_poll): Split into print_pollfd, decode_poll_entering,
and decode_poll_exiting.
(sys_poll, sys_ppoll): Update callers.
* tests/ppoll.c: New file.
* tests/ppoll.expected: Likewise.
* tests/ppoll-v.expected: Likewise.
* tests/ppoll.test: New test.
* tests/Makefile.am (check_PROGRAMS): Add ppoll.
(TESTS): Add ppoll.test.
(EXTRA_DIST): Add ppoll.expected and ppoll-v.expected.
* tests/.gitignore: Add ppoll.
diff --git a/tests/ppoll.test b/tests/ppoll.test
new file mode 100755
index 0000000..38fec23
--- /dev/null
+++ b/tests/ppoll.test
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# Check ppoll syscall decoding.
+
+. "${srcdir=.}/init.sh"
+
+run_prog
+run_strace -s2 -e ppoll $args
+match_grep
+run_strace -v -s2 -e ppoll $args
+match_grep "$LOG" "$srcdir/${ME_%.test}-v.expected"
+
+exit 0