summaryrefslogtreecommitdiffstats
path: root/googletest/test/gtest_help_test.py
diff options
context:
space:
mode:
authorMattias Ellert <mattias.ellert@physics.uu.se>2020-12-25 13:58:19 (GMT)
committerMattias Ellert <mattias.ellert@physics.uu.se>2020-12-25 13:58:19 (GMT)
commited1bf868464cfef290c89cad70ba0c908bf63ae9 (patch)
treec49d8b56e111520aaa530e84f8e85bedfad6ab02 /googletest/test/gtest_help_test.py
parentca4b7c9ff4d8a5c37ac51795b03ffe934958aeff (diff)
downloadgoogletest-ed1bf868464cfef290c89cad70ba0c908bf63ae9.zip
googletest-ed1bf868464cfef290c89cad70ba0c908bf63ae9.tar.gz
googletest-ed1bf868464cfef290c89cad70ba0c908bf63ae9.tar.bz2
Fix gtest-help-test failure on GNU/kFreeBSDrefs/pull/3189/head
Diffstat (limited to 'googletest/test/gtest_help_test.py')
-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 609615e..8d953bb 100755
--- a/googletest/test/gtest_help_test.py
+++ b/googletest/test/gtest_help_test.py
@@ -43,6 +43,7 @@ import gtest_test_utils
IS_LINUX = os.name == 'posix' and os.uname()[0] == 'Linux'
+IS_GNUKFREEBSD = os.name == 'posix' and os.uname()[0] == 'GNU/kFreeBSD'
IS_WINDOWS = os.name == 'nt'
PROGRAM_PATH = gtest_test_utils.GetTestExecutablePath('gtest_help_test_')
@@ -111,7 +112,7 @@ class GTestHelpTest(gtest_test_utils.TestCase):
self.assertEquals(0, exit_code)
self.assert_(HELP_REGEX.search(output), output)
- if IS_LINUX:
+ if IS_LINUX or IS_GNUKFREEBSD:
self.assert_(STREAM_RESULT_TO_FLAG in output, output)
else:
self.assert_(STREAM_RESULT_TO_FLAG not in output, output)