From fbbc9a4e347dabb2d1662744e6a2e83b569ea3a4 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Tue, 15 Jan 2019 14:58:15 -0500 Subject: Tests for minimal signal handler functionality in MINSIGSTKSZ space. There is general agreement that the very short list of things that ISO C says you can do in an async signal handler should all work when the handler is running on an alternate signal stack with only MINSIGSTKSZ space. This patch adds tests to make sure those things do work. To facilitate this, there is a new set of test support routines for setting up alternate signal stacks; see support/xsignal.h for the API. * support/xsignal.h (xalloc_sigstack, xfree_sigstack) (xget_sigstack_location): New test support functions. * support/xsigstack.c: New file, implementing them. * support/tst-xsigstack.c: New test for them. * support/Makefile: Update. * signal/tst-minsigstksz-1.c * signal/tst-minsigstksz-2.c * signal/tst-minsigstksz-3.c * signal/tst-minsigstksz-3a.c * signal/tst-minsigstksz-4.c: New tests. * signal/Makefile: Run them. --- signal/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'signal/Makefile') diff --git a/signal/Makefile b/signal/Makefile index 647ce24..9597287 100644 --- a/signal/Makefile +++ b/signal/Makefile @@ -47,6 +47,8 @@ routines := signal raise killpg \ tests := tst-signal tst-sigset tst-sigsimple tst-raise tst-sigset2 \ tst-sigwait-eintr tst-sigaction \ + tst-minsigstksz-1 tst-minsigstksz-2 tst-minsigstksz-3 \ + tst-minsigstksz-3a tst-minsigstksz-4 \ include ../Rules -- cgit v1.1