Dmitry V. Levin
fd2d6a7f52
* poll.c (print_pollfd): Change for use as print_array callback. (decode_poll_entering): Use print_array. * tests/poll.c: Update. * tests/poll.test: Update.
18 lines
318 B
Bash
Executable File
18 lines
318 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check poll syscall decoding.
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
run_prog > /dev/null
|
|
run_strace -a16 -vepoll $args > "$OUT"
|
|
match_diff "$LOG" "$OUT"
|
|
|
|
for abbrev in 0 1 2 3 4 5; do
|
|
run_prog "./$NAME" $abbrev > /dev/null
|
|
run_strace -a16 -epoll -s$abbrev $args > "$OUT"
|
|
match_diff "$LOG" "$OUT"
|
|
done
|
|
|
|
rm -f "$OUT"
|