summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkosak@google.com <kosak@google.com@861a406c-534a-0410-8894-cb66d6ee9925>2015-07-14 20:52:01 +0000
committerkosak@google.com <kosak@google.com@861a406c-534a-0410-8894-cb66d6ee9925>2015-07-14 20:52:01 +0000
commit7e35a36faf29c9afeb1fbdbd14fd2b4d70dc08a9 (patch)
tree4d3aa65662ef7e6bb475100e10b2e16691979c31
parent38f426b3178c8e9a6ba2498adaf1399bf81b7660 (diff)
downloadgoogletest-7e35a36faf29c9afeb1fbdbd14fd2b4d70dc08a9.tar.gz
Remove TestPrematureExitFileEnvVarIsSet
git-svn-id: http://googletest.googlecode.com/svn/trunk@718 861a406c-534a-0410-8894-cb66d6ee9925
-rw-r--r--test/gtest_premature_exit_test.cc16
1 files changed, 0 insertions, 16 deletions
diff --git a/test/gtest_premature_exit_test.cc b/test/gtest_premature_exit_test.cc
index c1ed968..3b4dc7d 100644
--- a/test/gtest_premature_exit_test.cc
+++ b/test/gtest_premature_exit_test.cc
@@ -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) {