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
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| ChangeLog | Loading commit data... | |
| ChangeLog.jit | Loading commit data... | |
| Makefile.am | Loading commit data... | |
| Makefile.in | Loading commit data... | |
| README | Loading commit data... | |
| aclocal.m4 | Loading commit data... | |
| alloc.c | Loading commit data... | |
| allocfail.c | Loading commit data... | |
| allocfail.sh | Loading commit data... | |
| atomic.c | Loading commit data... | |
| backtrace-supported.h.in | Loading commit data... | |
| backtrace.c | Loading commit data... | |
| backtrace.h | Loading commit data... | |
| btest.c | Loading commit data... | |
| config.h.in | Loading commit data... | |
| configure | Loading commit data... | |
| configure.ac | Loading commit data... | |
| dwarf.c | Loading commit data... | |
| edtest.c | Loading commit data... | |
| edtest2.c | Loading commit data... | |
| elf.c | Loading commit data... | |
| fileline.c | Loading commit data... | |
| filetype.awk | Loading commit data... | |
| instrumented_alloc.c | Loading commit data... | |
| internal.h | Loading commit data... | |
| mmap.c | Loading commit data... | |
| mmapio.c | Loading commit data... | |
| nounwind.c | Loading commit data... | |
| pecoff.c | Loading commit data... | |
| posix.c | Loading commit data... | |
| print.c | Loading commit data... | |
| read.c | Loading commit data... | |
| simple.c | Loading commit data... | |
| sort.c | Loading commit data... | |
| state.c | Loading commit data... | |
| stest.c | Loading commit data... | |
| test_format.c | Loading commit data... | |
| testlib.c | Loading commit data... | |
| testlib.h | Loading commit data... | |
| ttest.c | Loading commit data... | |
| unittest.c | Loading commit data... | |
| unknown.c | Loading commit data... | |
| xcoff.c | Loading commit data... | |
| ztest.c | Loading commit data... |