tst: Provide test for ppoll
authorLukasz Majewski <lukma@denx.de>
Wed, 13 Jan 2021 16:10:21 +0000 (17:10 +0100)
committerLukasz Majewski <lukma@denx.de>
Mon, 8 Feb 2021 08:20:03 +0000 (09:20 +0100)
commite2c0794d131db03d56db0b9cbbe397d100d6f60d
tree331d15d2f0647d9145d285838ea67919f5d76dae
parent5692abd13de967f985c985ba149e45641f20c837
tst: Provide test for ppoll

This change adds new test to assess ppoll()'s timeout related
functionality (the struct pollfd does not provide valid fd to wait
for - just wait for timeout).

To be more specific - two use cases are checked:
- if ppoll() times out immediately when passed struct timespec has zero
values of tv_nsec and tv_sec.
- if ppoll() times out after timeout specified in passed argument
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/tst-ppoll.c [new file with mode: 0644]