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:
parent
5a2b7739b0
commit
51684b312e
|
@ -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" "$@"
|
||||
|
|
Loading…
Reference in New Issue