Skip to content

Commit

Permalink
Merge pull request #3189 from ellert:gtest-help-test-GNU/kFreeBSD
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 349349288
  • Loading branch information
asoffer committed Jan 5, 2021
2 parents 389cb68 + ed1bf86 commit cc11495
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 @@ -43,6 +43,7 @@


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_')
Expand Down Expand Up @@ -111,7 +112,7 @@ def TestHelpFlag(self, flag):
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)
Expand Down

0 comments on commit cc11495

Please sign in to comment.