From 046efb852bef27fe2a22dc632fdaeb909d5b0086 Mon Sep 17 00:00:00 2001 From: "zhanyong.wan" Date: Fri, 19 Jun 2009 21:23:56 +0000 Subject: Fixes the broken run_tests_test (by Vlad Losev). --- test/gtest_test_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/gtest_test_utils.py') 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): -- cgit v1.2.3