]> git.ipfire.org Git - thirdparty/elfutils.git/commit
tests: Run valgrind also on binary tests.
authorMark Wielaard <mark@klomp.org>
Thu, 29 Oct 2020 15:43:14 +0000 (16:43 +0100)
committerMark Wielaard <mark@klomp.org>
Fri, 30 Oct 2020 23:49:42 +0000 (00:49 +0100)
commit70717f8c1fdef3ba5e83508bd3956b2479536534
tree3cae2adf11d80ec118b1cba194c7fcbb0119a860
parentb256093ad9a8b4972ae02bece266adad8a3c6dbd
tests: Run valgrind also on binary tests.

When configuring with --enable-valgrind we were only running valgrind
on tests with a shell wrapper script. This patch makes sure to also run
valgrind on "pure" binary tests. This found one small issue in libasm
where we could be writing some uninitialized padding to an ELF file.
And there were a couple tests that didn't clean up all the resources
they used. Both issues are also fixed with this patch.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libasm/ChangeLog
libasm/asm_align.c
tests/ChangeLog
tests/dwfl-bug-fd-leak.c
tests/dwfl-proc-attach.c
tests/test-wrapper.sh
tests/vdsosyms.c