strace/tests/poll-P.test
Dmitry V. Levin 92e347b556 Add copyright headers to some files that lack them
We do our best to keep copyright headers up to date, yet
git history provides better information on this subject
and is more accurate than copyright headers.
2018-12-24 23:46:43 +00:00

23 lines
487 B
Bash
Executable File

#!/bin/sh
#
# Check path tracing of poll syscall.
#
# Copyright (c) 2018 The strace developers.
# All rights reserved.
#
# SPDX-License-Identifier: GPL-2.0-or-later
. "${srcdir=.}/init.sh"
run_prog > /dev/null
run_strace -a16 -vepoll -P /dev/full 9>>/dev/full \
$args > "$EXP"
match_diff "$LOG" "$EXP"
for abbrev in 0 1 2 3 4 5; do
run_prog "../$NAME" $abbrev > /dev/null
run_strace -a16 -epoll -s$abbrev -P /dev/full 9>>/dev/full \
$args > "$EXP"
match_diff "$LOG" "$EXP"
done