From: NAKAMURA Takumi Date: Thu, 10 Feb 2011 09:11:57 +0000 (+0000) Subject: lit/TestFormats.py: Unittests may be found with suffix .exe also on Cygwin. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=7805cdcab55fe796919c870c1b64c66aa2faa04c;p=oota-llvm.git 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 --- diff --git a/utils/lit/lit/TestFormats.py b/utils/lit/lit/TestFormats.py index 230995a34b2..6dda2fdb608 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):