Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
ed1bf868
Commit
ed1bf868
authored
Dec 25, 2020
by
Mattias Ellert
Browse files
Fix gtest-help-test failure on GNU/kFreeBSD
parent
ca4b7c9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
googletest/test/gtest_help_test.py
googletest/test/gtest_help_test.py
+2
-1
No files found.
googletest/test/gtest_help_test.py
View file @
ed1bf868
...
@@ -43,6 +43,7 @@ import gtest_test_utils
...
@@ -43,6 +43,7 @@ import gtest_test_utils
IS_LINUX
=
os
.
name
==
'posix'
and
os
.
uname
()[
0
]
==
'Linux'
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'
IS_WINDOWS
=
os
.
name
==
'nt'
PROGRAM_PATH
=
gtest_test_utils
.
GetTestExecutablePath
(
'gtest_help_test_'
)
PROGRAM_PATH
=
gtest_test_utils
.
GetTestExecutablePath
(
'gtest_help_test_'
)
...
@@ -111,7 +112,7 @@ class GTestHelpTest(gtest_test_utils.TestCase):
...
@@ -111,7 +112,7 @@ class GTestHelpTest(gtest_test_utils.TestCase):
self
.
assertEquals
(
0
,
exit_code
)
self
.
assertEquals
(
0
,
exit_code
)
self
.
assert_
(
HELP_REGEX
.
search
(
output
),
output
)
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
)
self
.
assert_
(
STREAM_RESULT_TO_FLAG
in
output
,
output
)
else
:
else
:
self
.
assert_
(
STREAM_RESULT_TO_FLAG
not
in
output
,
output
)
self
.
assert_
(
STREAM_RESULT_TO_FLAG
not
in
output
,
output
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment