summaryrefslogtreecommitdiffstats
path: root/tools/valgrind/memcheck_analyze.py
diff options
context:
space:
mode:
authortimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-05 20:02:51 +0000
committertimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-05 20:02:51 +0000
commit19e0238ab89af1f7e873443aea5c9526d3a398df (patch)
treec61b61f17b137485883c31e05a58ffced237971c /tools/valgrind/memcheck_analyze.py
parent0ca705fd180729c71f5d8674be077a2d9c470032 (diff)
downloadchromium_src-19e0238ab89af1f7e873443aea5c9526d3a398df.zip
chromium_src-19e0238ab89af1f7e873443aea5c9526d3a398df.tar.gz
chromium_src-19e0238ab89af1f7e873443aea5c9526d3a398df.tar.bz2
Skip testing::Test::Run() frame and below when printing Valgrind reports and suppressions
Review URL: http://codereview.chromium.org/3017059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55117 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/valgrind/memcheck_analyze.py')
-rwxr-xr-xtools/valgrind/memcheck_analyze.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/valgrind/memcheck_analyze.py b/tools/valgrind/memcheck_analyze.py
index ff02973..77c5997 100755
--- a/tools/valgrind/memcheck_analyze.py
+++ b/tools/valgrind/memcheck_analyze.py
@@ -30,6 +30,7 @@ TheAddressTable = None
_TOP_OF_STACK_POINTS = [
# Don't show our testing framework.
"testing::Test::Run()",
+ "_ZN7testing4Test3RunEv",
# Also don't show the internals of libc/pthread.
"start_thread"
]
@@ -263,10 +264,12 @@ class ValgrindError:
# VG_MAX_SUPP_CALLERS, but we're probably fine with it as is.)
# TODO(dkegel): add more boring callers
newlen = 26;
- try:
- newlen = min(newlen, supplines.index(" fun:_ZN11MessageLoop3RunEv"))
- except ValueError:
- pass
+ for boring_caller in [" fun:_ZN11MessageLoop3RunEv",
+ " fun:_ZN7testing4Test3RunEv"]:
+ try:
+ newlen = min(newlen, supplines.index(boring_caller))
+ except ValueError:
+ pass
if (len(supplines) > newlen):
supplines = supplines[0:newlen]
supplines.append("}")