summaryrefslogtreecommitdiff
path: root/modules/c-stack-tests
Commit message (Collapse)AuthorAgeFilesLines
* Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.Bruno Haible2010-01-241-1/+1
|
* Refactor common macros used in tests.Bruno Haible2009-12-241-0/+1
|
* Test must fail if libsigsegv could not distinguish stack overflow and crash.Bruno Haible2008-07-211-1/+1
|
* Make c-stack use libsigsegv, when available.Eric Blake2008-07-171-1/+1
| | | | | | | | | | | | | | | | | | * modules/c-stack (Depends-on): Add libsigsegv. * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if needed. * lib/c-stack.c (SIGSTKSZ): Define fallback. (segv_handler, overflow_handler, c_stack_action) [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new implementation when libsigsegv is available, but only when using the library is necessary. * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add comment, explaining why XSI check fails on Linux. (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK. * tests/test-c-stack2.sh: Tweak skip message. * NEWS: Document new link-time requirements. Signed-off-by: Eric Blake <ebb9@byu.net>
* c-stack: Expose false positives when not using libsigsegv.Eric Blake2008-07-161-2/+3
| | | | | | | | | * modules/c-stack-tests (Files): Expand test. * tests/test-c-stack.c (main): Add means to conditionally trigger non-overflow SIGSEGV. * tests/test-c-stack2.sh: New file. Signed-off-by: Eric Blake <ebb9@byu.net>
* Move c-stack test into testsuite.Eric Blake2008-06-171-0/+15
* modules/c-stack-tests: New file. * lib/c-stack.c [DEBUG]: Move test program... * tests/test-c-stack.c: ...into this new file. Skip rather than fail test if sigaltstack is lacking. * tests/test-c-stack.sh: New driver file. Signed-off-by: Eric Blake <ebb9@byu.net>