From: Karel Zak Date: Wed, 21 Mar 2018 11:23:22 +0000 (+0100) Subject: tests: use libtool to execute with valgrind X-Git-Tag: v2.32~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51684b312e920c5d582c26ddfad0ae3bc8f22a07;p=thirdparty%2Futil-linux.git 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 --- diff --git a/tests/functions.sh b/tests/functions.sh index 0f991881a3..2fb0ddb5f4 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" "$@"