The libtool documentation says the proper way to invoke the
compiled program before it is installed is to use libtool.
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@911
64e312b2-a51f-0410-8e61-
82d0ca0eb02a
# file for details on the leak.
rm -f ${VALGRIND_LOG_FILE}
-valgrind --leak-check=full ${UNIT_TEST} 2>&1 | tee ${VALGRIND_LOG_FILE}
+libtool --mode=execute valgrind --leak-check=full ${UNIT_TEST} 2>&1 | tee ${VALGRIND_LOG_FILE}
NUM_LEAKS=$(grep "${LEAK_MESSAGE}" ${VALGRIND_LOG_FILE} | wc -l)