Skip to content

Commit

Permalink
Merge pull request #3751 from noiseless:gtest-help-test-OpenBSD
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 427207981
Change-Id: Ib93f8f61bf568d4651f9148fbc522288308c0d71
  • Loading branch information
copybara-github committed Feb 8, 2022
2 parents 504eb98 + 631f4f9 commit 06519ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion googletest/test/gtest_help_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
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_')
Expand Down Expand Up @@ -113,7 +114,7 @@ def TestHelpFlag(self, flag):
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)
Expand Down

0 comments on commit 06519ce

Please sign in to comment.