diff options
author | Bruno Haible <bruno@clisp.org> | 2021-05-16 18:29:48 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2021-05-16 19:02:56 +0200 |
commit | a6a6528db257ebd2841971fba0b30272f4e9a463 (patch) | |
tree | 0185f533b5d63eefe8897272f12610526edacddc /modules | |
parent | e54aa6196947ed22ff66bcd714e4fc7bd0c5c3b4 (diff) | |
download | gnulib-a6a6528db257ebd2841971fba0b30272f4e9a463.tar.gz |
sigsegv: Add tests.
* tests/test-sigsegv-catch-segv1.c: New file, from GNU libsigsegv with
modifications.
* tests/test-sigsegv-catch-segv2.c: Likewise.
* tests/test-sigsegv-catch-stackoverflow1.c: Likewise.
* tests/test-sigsegv-catch-stackoverflow2.c: Likewise.
* tests/altstack-util.h: Likewise.
* tests/mmap-anon-util.h: Likewise.
* modules/sigsegv-tests: New file.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/sigsegv-tests | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/sigsegv-tests b/modules/sigsegv-tests new file mode 100644 index 0000000000..ed7ed94fa4 --- /dev/null +++ b/modules/sigsegv-tests @@ -0,0 +1,31 @@ +Files: +tests/test-sigsegv-catch-segv1.c +tests/test-sigsegv-catch-segv2.c +tests/test-sigsegv-catch-stackoverflow1.c +tests/test-sigsegv-catch-stackoverflow2.c +tests/altstack-util.h +tests/mmap-anon-util.h +m4/mmap-anon.m4 + +Depends-on: +stdint + +configure.ac: +AC_CHECK_FUNCS_ONCE([setrlimit]) +gl_FUNC_MMAP_ANON + +Makefile.am: +TESTS += \ + test-sigsegv-catch-segv1 \ + test-sigsegv-catch-segv2 \ + test-sigsegv-catch-stackoverflow1 \ + test-sigsegv-catch-stackoverflow2 +check_PROGRAMS += \ + test-sigsegv-catch-segv1 \ + test-sigsegv-catch-segv2 \ + test-sigsegv-catch-stackoverflow1 \ + test-sigsegv-catch-stackoverflow2 +test_sigsegv_catch_segv1_LDADD = $(LDADD) $(LIBSIGSEGV) +test_sigsegv_catch_segv2_LDADD = $(LDADD) $(LIBSIGSEGV) +test_sigsegv_catch_stackoverflow1_LDADD = $(LDADD) $(LIBSIGSEGV) +test_sigsegv_catch_stackoverflow2_LDADD = $(LDADD) $(LIBSIGSEGV) |