Dmitry V. Levin
96dbdc342d
* tests/poll.c (main) [PATH_TRACING_FD]: Skip if /proc/self/fd/ is not available. Add tests calls that use PATH_TRACING_FD. (main): Conditionalize expected output for those calls that do not use PATH_TRACING_FD with [!PATH_TRACING_FD]. * tests/poll-P.c: New file. * tests/pure_executables.list: Add poll-P. * tests/.gitignore: Likewise. * tests/poll-P.test: New test. * tests/Makefile.am (DECODER_TESTS): Add poll-P.test.
18 lines
371 B
Bash
Executable File
18 lines
371 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check path tracing of poll syscall.
|
|
|
|
. "${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
|