diff options
author | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 13:06:42 +0000 |
---|---|---|
committer | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 13:06:42 +0000 |
commit | 877a2ee65a779079c2d9a5a380372f74e553a5de (patch) | |
tree | ebd491c4c3918d867d6ebe163e4376025df29000 /tools | |
parent | f5a87a0cbd2718d25ea78eb554ca42c25401d283 (diff) | |
download | chromium_src-877a2ee65a779079c2d9a5a380372f74e553a5de.zip chromium_src-877a2ee65a779079c2d9a5a380372f74e553a5de.tar.gz chromium_src-877a2ee65a779079c2d9a5a380372f74e553a5de.tar.bz2 |
Better error handling for broken heapcheck logs. Needed for buildbot-siide
debugging.
TBR=timurrrr
Review URL: http://codereview.chromium.org/2852009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49933 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rw-r--r-- | tools/heapcheck/heapcheck_test.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/heapcheck/heapcheck_test.py b/tools/heapcheck/heapcheck_test.py index a4c27ff..49acae1 100644 --- a/tools/heapcheck/heapcheck_test.py +++ b/tools/heapcheck/heapcheck_test.py @@ -108,7 +108,13 @@ class HeapcheckWrapper(object): description = supp.description break if cur_stack: - # Print the report and set the return code to 1. + if not cur_leak_signature: + print 'Missing leak signature for the following stack: ' + for frame in cur_stack: + print ' ' + frame + print 'Aborting...' + return 3 + # Print the report and set the return code to 1. print ('Leak of %d bytes in %d objects allocated from:' % tuple(cur_leak_signature)) print '\n'.join(cur_report) |