diff options
author | Tom de Vries <tdevries@suse.de> | 2018-12-12 13:50:51 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2018-12-12 13:50:51 +0000 |
commit | d665cd9b131b129caa3f6b1e3f85e43b34ca71e8 (patch) | |
tree | 81ecef53312f75f6b1a382a5e3da9ee70eca54af /gcc | |
parent | bf4eca2e562d036f109f1782e95b233453b0d503 (diff) | |
download | gcc-d665cd9b131b129caa3f6b1e3f85e43b34ca71e8.zip gcc-d665cd9b131b129caa3f6b1e3f85e43b34ca71e8.tar.gz gcc-d665cd9b131b129caa3f6b1e3f85e43b34ca71e8.tar.bz2 |
[libbacktrace] Add allocfail.sh test-case
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
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions