Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/googletest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Krasavin <noiseless-ak@yandex.ru>2022-02-05 03:44:54 +0300
committerAndrew Krasavin <noiseless-ak@yandex.ru>2022-02-05 03:44:54 +0300
commit631f4f9947fd97bfa6dd10d253830a5c2988e752 (patch)
tree448739d898a63ae1b74af7c5d7c5493e0ccf1d83
parent14aa11db02d9851d957f93ef9fddb110c1aafdc6 (diff)
Fix gtest-help-test failure on OpenBSD
-rwxr-xr-xgoogletest/test/gtest_help_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/googletest/test/gtest_help_test.py b/googletest/test/gtest_help_test.py
index 3e628ae5..6d2dde00 100755
--- a/googletest/test/gtest_help_test.py
+++ b/googletest/test/gtest_help_test.py
@@ -45,6 +45,7 @@ from googletest.test import gtest_test_utils
IS_LINUX = os.name == 'posix' and os.uname()[0] == 'Linux'
IS_GNUHURD = os.name == 'posix' and os.uname()[0] == 'GNU'
IS_GNUKFREEBSD = os.name == 'posix' and os.uname()[0] == 'GNU/kFreeBSD'
+IS_OPENBSD = os.name == 'posix' and os.uname()[0] == 'OpenBSD'
IS_WINDOWS = os.name == 'nt'
PROGRAM_PATH = gtest_test_utils.GetTestExecutablePath('gtest_help_test_')
@@ -113,7 +114,7 @@ class GTestHelpTest(gtest_test_utils.TestCase):
self.assertEquals(0, exit_code)
self.assert_(HELP_REGEX.search(output), output)
- if IS_LINUX or IS_GNUHURD or IS_GNUKFREEBSD:
+ if IS_LINUX or IS_GNUHURD or IS_GNUKFREEBSD or IS_OPENBSD:
self.assert_(STREAM_RESULT_TO_FLAG in output, output)
else:
self.assert_(STREAM_RESULT_TO_FLAG not in output, output)