| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 ''' Runs various chrome tests through heapcheck_test.py. | 7 ''' Runs various chrome tests through heapcheck_test.py. |
| 8 | 8 |
| 9 Most of this code is copied from ../valgrind/chrome_tests.py. | 9 Most of this code is copied from ../valgrind/chrome_tests.py. |
| 10 TODO(glider): put common functions to a standalone module. | 10 TODO(glider): put common functions to a standalone module. |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 | 450 |
| 451 for t in options.test: | 451 for t in options.test: |
| 452 tests = ChromeTests(options, args, t) | 452 tests = ChromeTests(options, args, t) |
| 453 ret = tests.Run() | 453 ret = tests.Run() |
| 454 if ret: | 454 if ret: |
| 455 return ret | 455 return ret |
| 456 return 0 | 456 return 0 |
| 457 | 457 |
| 458 | 458 |
| 459 if __name__ == "__main__": | 459 if __name__ == "__main__": |
| 460 if sys.platform == 'linux2': | 460 if sys.platform.startswith('linux'): |
| 461 ret = _main(sys.argv) | 461 ret = _main(sys.argv) |
| 462 else: | 462 else: |
| 463 logging.error("Heap checking works only on Linux at the moment.") | 463 logging.error("Heap checking works only on Linux at the moment.") |
| 464 ret = 1 | 464 ret = 1 |
| 465 sys.exit(ret) | 465 sys.exit(ret) |
| OLD | NEW |