nptl: Add sendmmsg and recvmmsg cancellation tests
commitb39b6e0c902f0bf5f99d593b8f5953943777c610
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 10 Jun 2016 13:03:04 +0000 (10 10:03 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 13 Jun 2016 16:37:24 +0000 (13 13:37 -0300)
tree89b6ee282879468ec64b432b2f402d4985cb4f2f
parent2c41b52901331f5c761015af786a3976e225d779
nptl: Add sendmmsg and recvmmsg cancellation tests

This patch adds cancellation tests for both sendmmsg and recvmmsg
syscalls.  Since for some system configuration (x86_64/i686 on
older kernels and non-Linux platforms), the tests are added as
two independent that report as unsupported if the syscall is not
presented.

Both new tests uses the already tst-cancel4.c code, which as moved
to a common tst-cancel4-common{.c,h} files.

Tested on x86_64 and i686.

* nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
* nptl/tst-cancel4-common.c: New file.
* nptl/tst-cancel4-common.h: Likewise.
* nptl/tst-cancel4.c: Move common definitions to
tst-cancel4-common.{c,h} file.
* nptl/tst-cancel4_1.c: New test.
* nptl/tst-cancel4_2.c: New test.
ChangeLog
nptl/Makefile
nptl/tst-cancel4-common.c [new file with mode: 0644]
nptl/tst-cancel4-common.h [new file with mode: 0644]
nptl/tst-cancel4.c
nptl/tst-cancel4_1.c [new file with mode: 0644]
nptl/tst-cancel4_2.c [new file with mode: 0644]