diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-12 12:58:48 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-12 12:58:48 +0000 |
commit | 702f9978ada5dcf21c2720219c7de067b81950a6 (patch) | |
tree | 600639f1a4476a853612f47d43d6dac37483967b /tools | |
parent | 5227056258ea0db058dbe20dd9a898d2ed51df6b (diff) | |
download | chromium_src-702f9978ada5dcf21c2720219c7de067b81950a6.zip chromium_src-702f9978ada5dcf21c2720219c7de067b81950a6.tar.gz chromium_src-702f9978ada5dcf21c2720219c7de067b81950a6.tar.bz2 |
Compute an error hash for suppressions
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6195003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71161 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rw-r--r-- | tools/heapcheck/heapcheck_test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/heapcheck/heapcheck_test.py b/tools/heapcheck/heapcheck_test.py index cb3a7b4..9c1165f 100644 --- a/tools/heapcheck/heapcheck_test.py +++ b/tools/heapcheck/heapcheck_test.py @@ -123,7 +123,8 @@ class HeapcheckWrapper(object): # Generate the suppression iff the stack contains more than one # frame (otherwise it's likely to be broken) if len(cur_stack) > 1: - print '\nSuppression:\n{' + print '\nSuppression (error hash=#%016X#):\n{' \ + % (hash("".join(cur_stack)) & 0xffffffffffffffff) print ' <insert_a_suppression_name_here>' print ' Heapcheck:Leak' for frame in cur_stack: |