diff options
author | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-22 14:27:21 +0000 |
---|---|---|
committer | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-22 14:27:21 +0000 |
commit | 1d0c6ab8120f73b0c88bd58530ddeb9cbbca4ac1 (patch) | |
tree | 258bc4e14f81ae8e4aad0ba701214578dd23f987 /tools | |
parent | f94d83b70a5d999abe64b4549438ae05fae67216 (diff) | |
download | chromium_src-1d0c6ab8120f73b0c88bd58530ddeb9cbbca4ac1.zip chromium_src-1d0c6ab8120f73b0c88bd58530ddeb9cbbca4ac1.tar.gz chromium_src-1d0c6ab8120f73b0c88bd58530ddeb9cbbca4ac1.tar.bz2 |
Fix the order in which the suppression reader reads the suppression's
description and type. Due to this bug the bot printed "Heapcheck:Leak" instead
of the suppressions' types.
TBR=timurrrr
Review URL: http://codereview.chromium.org/503084
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35148 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rw-r--r-- | tools/heapcheck/suppressions.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/heapcheck/suppressions.py b/tools/heapcheck/suppressions.py index e1b3498..91c5238 100644 --- a/tools/heapcheck/suppressions.py +++ b/tools/heapcheck/suppressions.py @@ -122,12 +122,12 @@ def ReadSuppressionsFromFile(filename): cur_descr = '' cur_type = '' cur_stack = [] - elif not cur_type: - cur_type = line - continue elif not cur_descr: cur_descr = line continue + elif not cur_type: + cur_type = line + continue elif line.startswith('fun:'): line = line[4:] cur_stack.append(line.strip()) |