Commit 90aa5032 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5537 don't use "tokuvalgrind" on darwin because valgrind on darwin is noisy


git-svn-id: file:///svn/toku/tokudb@48381 c7de825b-a66e-492c-adef-691d508d4ae1
parent ebad828c
if(BUILD_TESTING)
set(MEMORYCHECK_COMMAND "${TokuDB_SOURCE_DIR}/scripts/tokuvalgrind")
if (CMAKE_SYSTEM_NAME STREQUAL Darwin)
# Valgrind on OSX 10.8 generally works but outputs some warning junk
# that is hard to parse out, so we'll just let it run alone
set(MEMORYCHECK_COMMAND "${TokuDB_SOURCE_DIR}/scripts/tokuvalgrind")
endif ()
set(MEMORYCHECK_COMMAND_OPTIONS "--gen-suppressions=no --quiet --num-callers=20 --leak-check=full --show-reachable=yes --trace-children=yes --trace-children-skip=sh,*/sh,basename,*/basename,dirname,*/dirname,rm,*/rm,cp,*/cp,mv,*/mv,cat,*/cat,diff,*/diff,grep,*/grep,date,*/date,test,*/tokudb_dump* --trace-children-skip-by-arg=--only_create,--test,--no-shutdown,novalgrind" CACHE INTERNAL "options for valgrind")
set(MEMORYCHECK_SUPPRESSIONS_FILE "${CMAKE_CURRENT_BINARY_DIR}/valgrind.suppressions" CACHE INTERNAL "suppressions file for valgrind")
endif()
......@@ -38,8 +38,7 @@ fi
valgrind $args
exitcode=$?
if [ $exitcode = 0 ] ; then
# ignore "empty" valgrind lines, and ignore the warning about not running well on OSX 10.8 that start with WARNING:
lines=`grep -v '==\ WARNING:\ ' $logfile | grep -v '[-]-[0-9]\+:[0-9]\+:syswrap-\ WARNING:\ Ignoring\ sigreturn\(\ \.\.\.,\ UC_RESET_ALT_STACK\ \);' | grep -v '^==[0-9]\+==\ $' | grep -v '^$' | grep -v '^UNKNOWN\ task\ message\ \[id\ 3403,\ to\ mach_task_self(),\ reply' | wc -l`
lines=$(wc -l $logfile)
if [ $lines -ne 0 ] ; then
exitcode=$errorexitcode
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment