tests: use libtool to execute with valgrind

The libtool based build system uses scripts rather than real binaries
in $top_builddir. It's necessary to use libtool --mode=execute to call
valgrind for the real binary (from .libs/).

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2018-03-21 12:23:22 +01:00
parent 5a2b7739b0
commit 51684b312e
1 changed files with 1 additions and 0 deletions

View File

@ -393,6 +393,7 @@ function ts_run {
# valgrind mode
#
if [ -n "$TS_VALGRIND_CMD" ]; then
libtool --mode=execute \
$TS_VALGRIND_CMD --tool=memcheck --leak-check=full \
--leak-resolution=high --num-callers=20 \
--log-file="$TS_VGDUMP" "$@"