OLD | NEW |
1 #!/usr/bin/python | |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 3 # found in the LICENSE file. |
5 | 4 |
6 # heapcheck_test.py | |
7 | |
8 """Wrapper for running the test under heapchecker and analyzing the output.""" | 5 """Wrapper for running the test under heapchecker and analyzing the output.""" |
9 | 6 |
10 import datetime | 7 import datetime |
11 import logging | 8 import logging |
12 import os | 9 import os |
13 import re | 10 import re |
14 | 11 |
15 import common | 12 import common |
16 import path_utils | 13 import path_utils |
17 import suppressions | 14 import suppressions |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 'http://dev.chromium.org/developers/how-tos/' | 219 'http://dev.chromium.org/developers/how-tos/' |
223 'using-the-heap-leak-checker') | 220 'using-the-heap-leak-checker') |
224 return retcode | 221 return retcode |
225 | 222 |
226 | 223 |
227 def RunTool(args, supp_files, module): | 224 def RunTool(args, supp_files, module): |
228 tool = HeapcheckWrapper(supp_files) | 225 tool = HeapcheckWrapper(supp_files) |
229 MODULES_TO_SANITY_CHECK = ["base"] | 226 MODULES_TO_SANITY_CHECK = ["base"] |
230 check_sanity = module in MODULES_TO_SANITY_CHECK | 227 check_sanity = module in MODULES_TO_SANITY_CHECK |
231 return tool.Main(args[1:], check_sanity) | 228 return tool.Main(args[1:], check_sanity) |
OLD | NEW |