aboutsummaryrefslogtreecommitdiffstats
path: root/test/gtest_test_utils.py
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-06-19 21:23:56 +0000
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-06-19 21:23:56 +0000
commit046efb852bef27fe2a22dc632fdaeb909d5b0086 (patch)
tree052c7a62cb9de8143c802fa6b0882805b48feeb5 /test/gtest_test_utils.py
parent3c181b5657a51d73166c1012dad80ed3ee7a30ee (diff)
downloadgoogletest-046efb852bef27fe2a22dc632fdaeb909d5b0086.tar.gz
googletest-046efb852bef27fe2a22dc632fdaeb909d5b0086.tar.bz2
googletest-046efb852bef27fe2a22dc632fdaeb909d5b0086.zip
Fixes the broken run_tests_test (by Vlad Losev).
Diffstat (limited to 'test/gtest_test_utils.py')
-rwxr-xr-xtest/gtest_test_utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/gtest_test_utils.py b/test/gtest_test_utils.py
index 45b25cd6..5b28fe49 100755
--- a/test/gtest_test_utils.py
+++ b/test/gtest_test_utils.py
@@ -53,6 +53,7 @@ except:
IS_WINDOWS = os.name == 'nt'
+IS_CYGWIN = os.name == 'posix' and 'CYGWIN' in os.uname()[0]
# Here we expose a class from a particular module, depending on the
# environment. The comment suppresses the 'Invalid variable name' lint
@@ -150,7 +151,7 @@ def GetTestExecutablePath(executable_name):
"""
path = os.path.abspath(os.path.join(GetBuildDir(), executable_name))
- if IS_WINDOWS and not path.endswith('.exe'):
+ if (IS_WINDOWS or IS_CYGWIN) and not path.endswith('.exe'):
path += '.exe'
if not os.path.exists(path):