lit/TestFormats.py: Unittests may be found with suffix .exe also on Cygwin.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 10 Feb 2011 09:11:57 +0000 (09:11 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 10 Feb 2011 09:11:57 +0000 (09:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125273 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/TestFormats.py

index 230995a34b22d64f985e6b76181de8382b924bd8..6dda2fdb608d428aa0957a0a2cbb995c42633c0b 100644 (file)
@@ -1,11 +1,11 @@
 import os
-import platform
+import sys
 
 import Test
 import TestRunner
 import Util
 
-kIsWindows = platform.system() == 'Windows'
+kIsWindows = sys.platform in ['win32', 'cygwin']
 
 class GoogleTest(object):
     def __init__(self, test_sub_dir, test_suffix):