Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Unified Diff: tools/heapcheck/heapcheck_test.py

Issue 6195003: Compute an error hash for suppressions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/tools/heapcheck
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/heapcheck/heapcheck_test.py
diff --git a/tools/heapcheck/heapcheck_test.py b/tools/heapcheck/heapcheck_test.py
index cb3a7b458ff26fe78a337b3b42a5c5078b002b25..9c1165fde48d732b7559a0456b96817b6fde3003 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:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698