[llvm-commits] [llvm] r125273 - /llvm/trunk/utils/lit/lit/TestFormats.py
NAKAMURA Takumi
geek4civic at gmail.com
Thu Feb 10 01:11:57 PST 2011
Author: chapuni
Date: Thu Feb 10 03:11:57 2011
New Revision: 125273
URL: http://llvm.org/viewvc/llvm-project?rev=125273&view=rev
Log:
lit/TestFormats.py: Unittests may be found with suffix .exe also on Cygwin.
Modified:
llvm/trunk/utils/lit/lit/TestFormats.py
Modified: llvm/trunk/utils/lit/lit/TestFormats.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestFormats.py?rev=125273&r1=125272&r2=125273&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestFormats.py (original)
+++ llvm/trunk/utils/lit/lit/TestFormats.py Thu Feb 10 03:11:57 2011
@@ -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):
More information about the llvm-commits
mailing list