From 1d0c6ab8120f73b0c88bd58530ddeb9cbbca4ac1 Mon Sep 17 00:00:00 2001 From: "glider@chromium.org" Date: Tue, 22 Dec 2009 14:27:21 +0000 Subject: 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 --- tools/heapcheck/suppressions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools') 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()) -- cgit v1.1