]> granicus.if.org Git - check/commitdiff
test_mem_leaks.sh: use libtool to invoke check_mem_leaks
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Thu, 19 Dec 2013 16:27:53 +0000 (16:27 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Thu, 19 Dec 2013 16:27:53 +0000 (16:27 +0000)
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

tests/test_mem_leaks.sh

index 081f7446cdeac5753cc1f3e8429abe0f5fe338f6..e70c9053ca6876f087dcda64d457dc8cbdd2a466 100755 (executable)
@@ -10,7 +10,7 @@ LEAK_MESSAGE="are definitely lost"
 # 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)