Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
957ed9fb
Commit
957ed9fb
authored
Nov 26, 2008
by
vladlosev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding test/gtest_uninitialized_test.py missing from the previous check-in
parent
95536ab5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
14 deletions
+4
-14
gtest_uninitialized_test.py
test/gtest_uninitialized_test.py
+4
-14
No files found.
test/gtest_uninitialized_test.py
View file @
957ed9fb
...
...
@@ -67,24 +67,14 @@ def AssertEq(expected, actual):
raise
AssertionError
def
GetOutput
(
command
):
"""Runs the given command and returns its output."""
stdin
,
stdout
=
os
.
popen2
(
command
,
't'
)
stdin
.
close
()
output
=
stdout
.
read
()
stdout
.
close
()
return
output
def
TestExitCodeAndOutput
(
command
):
"""Runs the given command and verifies its exit code and output."""
# Verifies that 'command' exits with code 1.
AssertEq
(
1
,
gtest_test_utils
.
GetExitStatus
(
os
.
system
(
command
))
)
output
=
GetOutput
(
command
)
Assert
(
'InitGoogleTest'
in
output
)
p
=
gtest_test_utils
.
Subprocess
(
command
)
Assert
(
p
.
exited
)
AssertEq
(
1
,
p
.
exit_code
)
Assert
(
'InitGoogleTest'
in
p
.
output
)
if
IS_WINDOWS
:
...
...
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