]> sourceware.org Git - glibc.git/commit
tst: Add test for sigtimedwait
authorLukasz Majewski <lukma@denx.de>
Mon, 15 Mar 2021 11:14:22 +0000 (12:14 +0100)
committerLukasz Majewski <lukma@denx.de>
Tue, 23 Mar 2021 11:23:33 +0000 (12:23 +0100)
commita4ea18ec6cc3f1370efab09bc18c1badbf74aa13
tree721f010492702d3a670145f34ced50c11ac9e0b1
parentbff3019afc77eb51634471827daaa1c17a6dc5bd
tst: Add test for sigtimedwait

This change adds new test to assess sigtimedwait's timeout related
functionality - the sigset_t is configured for SIGUSR1, which will
not be triggered, so sigtimedwait just waits for timeout.

To be more specific - two use cases are checked:
- if sigtimedwait times out immediately when passed struct timespec has
  zero values of tv_nsec and tv_sec.
- if sigtimedwait times out after timeout specified in passed argument

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/tst-sigtimedwait.c [new file with mode: 0644]
This page took 0.043038 seconds and 5 git commands to generate.