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
54566c25
Commit
54566c25
authored
Jul 14, 2015
by
kosak
Browse files
Remove TestPrematureExitFileEnvVarIsSet
parent
fb9caa4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
test/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