debug: test for more required cacellation points (BZ# 29274)
commitcd84e30c047049c2d7cd425384afc3a860977eec
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 27 Jun 2022 20:37:45 +0000 (27 20:37 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 5 Sep 2022 13:47:34 +0000 (5 10:47 -0300)
tree83cb9c363d9a5198600e53a0c6616f03b04a1872
parent29eb7961197bee68470730aecfdda4d0e206812e
debug: test for more required cacellation points (BZ# 29274)

Generalize the test for cancellation point in __read_chk to also test
the other fortified functions with required cancellation points.

Since there is not easy way to force some syscalls to block (for
instance pread) the test tests two modes: cancellation on blocked
syscalls and early cancellation on pending request.

Checked on x86_64-linux-gnu and aarch64-linux-gnu.

Co-authored-by: Andreas Schwab <schwab@suse.de>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
debug/Makefile
debug/tst-chk-cancel.c [new file with mode: 0644]
debug/tst-read-chk-cancel.c [deleted file]