feat(libxce-alloc-preason-equality): public alloc_eq/host_alloc_eq/job_alloc_eq with first-difference description (task 2.1)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
8f25c1c3f3
commit
a6cbb323b0
6 changed files with 952 additions and 5 deletions
|
|
@ -246,12 +246,17 @@ test('libxce test', libxce_test, timeout: 120)
|
|||
# idiom as bug-1843's sched_record_lifecycle_test `--wrap=realloc`) so the
|
||||
# tests can make a chosen strdup() inside make_alloc()/make_host_alloc()
|
||||
# fail. Its own binary, so xcelib_test's other tests never see the wrap.
|
||||
# libxce-alloc-preason-equality: it also wraps vasprintf (and the
|
||||
# _FORTIFY_SOURCE __vasprintf_chk variant) to fail the equality functions'
|
||||
# description allocation.
|
||||
libxce_alloc_oom_test = executable('xcealloc_oom_test',
|
||||
['testsuite/test_xcealloc_oom.c'],
|
||||
include_directories: [incdir, build_inc],
|
||||
dependencies: libxce_test_deps,
|
||||
c_args: ['-DXCE_TESTING'],
|
||||
link_args: ['-Wl,--wrap=strdup'],
|
||||
link_args: ['-Wl,--wrap=strdup',
|
||||
'-Wl,--wrap=vasprintf',
|
||||
'-Wl,--wrap=__vasprintf_chk'],
|
||||
install: false)
|
||||
|
||||
test('libxce alloc OOM test', libxce_alloc_oom_test, timeout: 60)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue