summaryrefslogtreecommitdiffstats
path: root/tools/valgrind/common.py
diff options
context:
space:
mode:
authortimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-30 12:46:34 +0000
committertimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-30 12:46:34 +0000
commite28f36f30c0ae727cf5bb9172f9880a5325703a9 (patch)
tree354304ecbf23b4d6824cdf3dc9ed63e3d7c6f631 /tools/valgrind/common.py
parentbcb1a598e54dd0ed53ef166913c9868dccffd7ce (diff)
downloadchromium_src-e28f36f30c0ae727cf5bb9172f9880a5325703a9.zip
chromium_src-e28f36f30c0ae727cf5bb9172f9880a5325703a9.tar.gz
chromium_src-e28f36f30c0ae727cf5bb9172f9880a5325703a9.tar.bz2
Add win32 gtest filter files shared between Wine and TSan/Windows
BUG=28363 Review URL: http://codereview.chromium.org/1377003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43076 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/valgrind/common.py')
-rwxr-xr-xtools/valgrind/common.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/tools/valgrind/common.py b/tools/valgrind/common.py
index 52af411..8b855f6 100755
--- a/tools/valgrind/common.py
+++ b/tools/valgrind/common.py
@@ -142,15 +142,18 @@ def IsWine():
os.environ.get('WINESERVER'))
-def PlatformName():
- """Return a string to be used in paths for the platform."""
+def PlatformNames():
+ """Return an array of string to be used in paths for the platform
+ (e.g. suppressions, gtest filters, ignore files etc.)
+ The first element of the array describes the 'main' platform
+ """
# This has to be before IsLinux()
if IsWine():
- return 'wine'
+ return ['wine', 'win32']
if IsLinux():
- return 'linux'
+ return ['linux']
if IsMac():
- return 'mac'
+ return ['mac']
if IsWindows():
- return 'win32'
+ return ['win32']
raise NotImplementedError('Unknown platform "%s".' % sys.platform)