[llvm-commits] [llvm] r111487 - /llvm/trunk/utils/lit/lit/TestFormats.py

NAKAMURA Takumi geek4civic at gmail.com
Mon Aug 23 20:51:32 PDT 2010


Hi, ddunbar.

It does not detect Cygwin and fails to pick up unittests.

Would you like to check my patch attached, please?
I checked it on mingw(Python-2.7/w32) and cygwin-1.7.

thank you...Takumi
-------------- next part --------------
diff --git a/utils/lit/lit/TestFormats.py b/utils/lit/lit/TestFormats.py
index 7ffbd2b..c047ea8 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):


More information about the llvm-commits mailing list