From 51684b312e920c5d582c26ddfad0ae3bc8f22a07 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 21 Mar 2018 12:23:22 +0100 Subject: 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 --- tests/functions.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/functions.sh') diff --git a/tests/functions.sh b/tests/functions.sh index 0f991881a..2fb0ddb5f 100644 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -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" "$@" -- cgit v1.2.3-55-g7522