summaryrefslogtreecommitdiffstats
path: root/tools/heapcheck
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-16 17:15:47 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-16 17:15:47 +0000
commitadbae7e226e63018f388bdb197ca5c8f36514a45 (patch)
treed55a7a0778165787b4f0ea6216dde4108818dcab /tools/heapcheck
parent6b8c8e75fdb1ddb0329c1309c993748aa86c6b33 (diff)
downloadchromium_src-adbae7e226e63018f388bdb197ca5c8f36514a45.zip
chromium_src-adbae7e226e63018f388bdb197ca5c8f36514a45.tar.gz
chromium_src-adbae7e226e63018f388bdb197ca5c8f36514a45.tar.bz2
Add support for Linux kernels >=3.0-rc1 in Python related build files by:
- replacing occurences of sys.platform == 'linux2' with sys.platform.startswith('linux') - congregating occurences of sys.platform in ('linux[X]', 'linuxY', ...) to sys.platform.startswith('linux') - adding the key 'linux3' to all relevant lookup dicts BUG=85845 TEST=Try building chromium on Linux >=3.0-r1 Review URL: http://codereview.chromium.org/7172016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89354 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/heapcheck')
-rwxr-xr-xtools/heapcheck/chrome_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/heapcheck/chrome_tests.py b/tools/heapcheck/chrome_tests.py
index 2f581ba..46e7b89 100755
--- a/tools/heapcheck/chrome_tests.py
+++ b/tools/heapcheck/chrome_tests.py
@@ -457,7 +457,7 @@ def _main(_):
if __name__ == "__main__":
- if sys.platform == 'linux2':
+ if sys.platform.startswith('linux'):
ret = _main(sys.argv)
else:
logging.error("Heap checking works only on Linux at the moment.")