Deactivate TestTargetSymbolsBuildidCase if host is windows

Makefile has unix magic and thus not working on windows.

llvm-svn: 324558
This commit is contained in:
Eugene Zemtsov 2018-02-08 03:05:47 +00:00
parent bae5918d99
commit 4c17d95bea
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ class TestTargetSymbolsBuildidCase(TestBase):
@no_debug_info_test # Prevent the genaration of the dwarf version of this test
@skipUnlessPlatform(['linux'])
@skipIf(hostoslist=['windows'])
def test_target_symbols_buildid_case(self):
self.build(clean=True)
exe = self.getBuildArtifact("stripped.out")

View File

@ -109,7 +109,7 @@ def getHostPlatform():
# Attempts to return a platform name matching a target Triple platform.
if sys.platform.startswith('linux'):
return 'linux'
elif sys.platform.startswith('win32'):
elif sys.platform.startswith('win32') or sys.platform.startswith('cygwin'):
return 'windows'
elif sys.platform.startswith('darwin'):
return 'darwin'