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
54566c25
Commit
54566c25
authored
Jul 14, 2015
by
kosak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove TestPrematureExitFileEnvVarIsSet
parent
fb9caa4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
gtest_premature_exit_test.cc
test/gtest_premature_exit_test.cc
+0
-16
No files found.
test/gtest_premature_exit_test.cc
View file @
54566c25
...
...
@@ -44,10 +44,6 @@ using ::testing::internal::posix::StatStruct;
namespace
{
// Is the TEST_PREMATURE_EXIT_FILE environment variable expected to be
// set?
const
bool
kTestPrematureExitFileEnvVarShouldBeSet
=
false
;
class
PrematureExitTest
:
public
Test
{
public
:
// Returns true iff the given file exists.
...
...
@@ -97,18 +93,6 @@ TEST_F(PrematureExitDeathTest, FileExistsDuringExecutionOfDeathTest) {
},
""
);
}
// Tests that TEST_PREMATURE_EXIT_FILE is set where it's expected to
// be set.
TEST_F
(
PrematureExitTest
,
TestPrematureExitFileEnvVarIsSet
)
{
GTEST_INTENTIONAL_CONST_COND_PUSH_
()
if
(
kTestPrematureExitFileEnvVarShouldBeSet
)
{
GTEST_INTENTIONAL_CONST_COND_POP_
()
const
char
*
const
filepath
=
GetEnv
(
"TEST_PREMATURE_EXIT_FILE"
);
ASSERT_TRUE
(
filepath
!=
NULL
);
ASSERT_NE
(
*
filepath
,
'\0'
);
}
}
// Tests that the premature-exit file exists during the execution of a
// normal (non-death) test.
TEST_F
(
PrematureExitTest
,
PrematureExitFileExistsDuringTestExecution
)
{
...
...
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