summaryrefslogtreecommitdiff
path: root/libbacktrace/allocfail.c
AgeCommit message (Collapse)Author
2025-01-02Update copyright years.Jakub Jelinek
2024-01-03Update copyright years.Jakub Jelinek
2023-01-16Update copyright years.Jakub Jelinek
2022-01-03Update copyright years.Jakub Jelinek
2021-01-04Update copyright years.Jakub Jelinek
2020-01-01Update copyright years.Jakub Jelinek
From-SVN: r279813
2019-01-20* allocfail.c (main): Increase portability of printf statement.Gerald Pfeifer
From-SVN: r268105
2019-01-01Update copyright years.Jakub Jelinek
From-SVN: r267494
2018-12-12[libbacktrace] Add allocfail.sh test-caseTom de Vries
Add test-case that forces alloc.c functions to fail, and check whether fail handling is robust. This is the test-case for "[libbacktrace] Fix segfault upon allocation failure". Without that patch, this test-case fails like this: ... allocfail.sh: line 71: 26041 Segmentation fault (core dumped) \ ./allocfail $i > /dev/null 2>&1 Unallowed fail found: 13 FAIL allocfail.sh (exit status: 1) ... This is a seperate patch because the test-case is nontrivial. Bootstrapped and reg-tested on x86_64. 2018-12-12 Tom de Vries <tdevries@suse.de> * Makefile.am (TESTS): Add allocfail.sh. (check_PROGRAMS): Add allocfail. * Makefile.in: Regenerate. * instrumented_alloc.c: New file. Redefine malloc and realloc. Include alloc.c. * allocfail.c: New file. * allocfail.sh: New file. From-SVN: r267054