diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-11-19 03:19:26 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-11-19 03:19:26 +0000 |
commit | fb4d9816e79af3562e277631878b1a632bbcd8e1 (patch) | |
tree | 5876b948f659105bb916ef56c217ea3c439578f5 | |
parent | 4c8710d9171da1e46ee6e209c9ffc44944869a20 (diff) | |
download | llvm-fb4d9816e79af3562e277631878b1a632bbcd8e1.tar.gz llvm-fb4d9816e79af3562e277631878b1a632bbcd8e1.tar.bz2 llvm-fb4d9816e79af3562e277631878b1a632bbcd8e1.tar.xz |
lit.GoogleTest: On case-insensitive filesystem, matching should be case-insensitive when directory name is checked with test_sub_dir.
On MSVS8, ${CMAKE_CFG_INTDIR}, aka $(OutDir), has capitalized name(eg. Debug), although $(OutDir) is made with lower case(eg. debug).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119781 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | utils/lit/lit/TestFormats.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/lit/lit/TestFormats.py b/utils/lit/lit/TestFormats.py index 7662e14426..d4e662534d 100644 --- a/utils/lit/lit/TestFormats.py +++ b/utils/lit/lit/TestFormats.py @@ -9,7 +9,7 @@ kIsWindows = platform.system() == 'Windows' class GoogleTest(object): def __init__(self, test_sub_dir, test_suffix): - self.test_sub_dir = str(test_sub_dir).split(';') + self.test_sub_dir = os.path.normcase(str(test_sub_dir)).split(';') self.test_suffix = str(test_suffix) # On Windows, assume tests will also end in '.exe'. @@ -59,7 +59,7 @@ class GoogleTest(object): source_path = testSuite.getSourcePath(path_in_suite) for filename in os.listdir(source_path): # Check for the one subdirectory (build directory) tests will be in. - if not filename in self.test_sub_dir: + if not os.path.normcase(filename) in self.test_sub_dir: continue filepath = os.path.join(source_path, filename) |