summaryrefslogtreecommitdiffstats
path: root/utils/lit
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-02-10 09:11:57 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-02-10 09:11:57 +0000
commit7805cdcab55fe796919c870c1b64c66aa2faa04c (patch)
tree8704c05bf2bbce11841670720364a5267359b7a2 /utils/lit
parentf5201bcd3b57e6b96ae3293b3a9c31ab49dd967c (diff)
downloadexternal_llvm-7805cdcab55fe796919c870c1b64c66aa2faa04c.zip
external_llvm-7805cdcab55fe796919c870c1b64c66aa2faa04c.tar.gz
external_llvm-7805cdcab55fe796919c870c1b64c66aa2faa04c.tar.bz2
lit/TestFormats.py: Unittests may be found with suffix .exe also on Cygwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125273 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit')
-rw-r--r--utils/lit/lit/TestFormats.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/lit/lit/TestFormats.py b/utils/lit/lit/TestFormats.py
index 230995a..6dda2fd 100644
--- a/utils/lit/lit/TestFormats.py
+++ b/utils/lit/lit/TestFormats.py
@@ -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):