about summary refs log tree commit diff
path: root/support/Makefile
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2019-01-15 14:58:15 -0500
committerZack Weinberg <zackw@panix.com>2019-01-16 09:04:10 -0500
commitfbbc9a4e347dabb2d1662744e6a2e83b569ea3a4 (patch)
tree851cec767738b1312c091946390c7652b7a8e224 /support/Makefile
parent5f1135e4e5a16c0a197ff8f82e5bb65aef468bd7 (diff)
downloadglibc-fbbc9a4e347dabb2d1662744e6a2e83b569ea3a4.tar.gz
glibc-fbbc9a4e347dabb2d1662744e6a2e83b569ea3a4.tar.xz
glibc-fbbc9a4e347dabb2d1662744e6a2e83b569ea3a4.zip
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.
Diffstat (limited to 'support/Makefile')
-rw-r--r--support/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/support/Makefile b/support/Makefile
index 6ac4447def..432cf2fe6c 100644
--- a/support/Makefile
+++ b/support/Makefile
@@ -145,6 +145,7 @@ libsupport-routines = \
   xsetsockopt \
   xsigaction \
   xsignal \
+  xsigstack \
   xsocket \
   xstrdup \
   xstrndup \
@@ -205,6 +206,7 @@ tests = \
   tst-test_compare_blob \
   tst-test_compare_string \
   tst-xreadlink \
+  tst-xsigstack \
 
 ifeq ($(run-built-tests),yes)
 tests-special = \