summaryrefslogtreecommitdiffstats
path: root/tools/heapcheck
diff options
context:
space:
mode:
authorglider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-12 15:47:03 +0000
committerglider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-12 15:47:03 +0000
commit2cba97060f0625c18ef20362ce9d0fef04b312bd (patch)
treeee8c1dc5ed110e37ef03c96650f0a770ae1a78b2 /tools/heapcheck
parentedbc470a9e1fdf84ab8bf094cbf76647d8163ec3 (diff)
downloadchromium_src-2cba97060f0625c18ef20362ce9d0fef04b312bd.zip
chromium_src-2cba97060f0625c18ef20362ce9d0fef04b312bd.tar.gz
chromium_src-2cba97060f0625c18ef20362ce9d0fef04b312bd.tar.bz2
Hotfixed the heap checker wrapper.
Review URL: http://codereview.chromium.org/603042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38896 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/heapcheck')
-rw-r--r--tools/heapcheck/heapcheck_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/heapcheck/heapcheck_test.py b/tools/heapcheck/heapcheck_test.py
index 80bd37c..90f145df 100644
--- a/tools/heapcheck/heapcheck_test.py
+++ b/tools/heapcheck/heapcheck_test.py
@@ -154,11 +154,11 @@ class HeapcheckWrapper(object):
for line in histo[count]:
print line
print '-----------------------------------------------------'
- if is_sane:
- return return_code
- else:
+ if check_sanity and not is_sane:
logging.error("Sanity check failed")
return 2
+ else:
+ return return_code
def RunTestsAndAnalyze(self, check_sanity):
self.Execute()