- 3.0.1 core module.
gtest-death-test.h File Reference

Go to the source code of this file.

Namespaces

 testing
 

Macros

#define GTEST_UNSUPPORTED_DEATH_TEST(statement, regex, terminator)
 
#define EXPECT_DEATH_IF_SUPPORTED(statement, regex)   GTEST_UNSUPPORTED_DEATH_TEST(statement, regex, )
 
#define ASSERT_DEATH_IF_SUPPORTED(statement, regex)   GTEST_UNSUPPORTED_DEATH_TEST(statement, regex, return)
 

Functions

 testing::GTEST_DECLARE_string_ (death_test_style)
 

Macro Definition Documentation

#define GTEST_UNSUPPORTED_DEATH_TEST (   statement,
  regex,
  terminator 
)
Value:
GTEST_LOG_(WARNING) \
<< "Death tests are not supported on this platform.\n" \
<< "Statement '" #statement "' cannot be verified."; \
terminator; \
} else \
::testing::Message()
#define GTEST_LOG_(severity)
Definition: gtest-port.h:990
static bool PartialMatch(const ::std::string &str, const RE &re)
Definition: gtest-port.h:919
GTEST_API_ bool AlwaysTrue()
Definition: gtest.cc:5655
bool AlwaysFalse()
Definition: gtest-internal.h:817
#define GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement)
Definition: gtest-internal.h:1309
cmake hermetic_build cmake OPTIONAL if(COMMAND pre_project_set_up_hermetic_build) pre_project_set_up_hermetic_build() endif() if(CMAKE_VERSION VERSION_LESS 3.0) project(gmock CXX C) else() cmake_policy(SET CMP0048 NEW) project(gmock VERSION $
Definition: CMakeLists.txt:23
#define EXPECT_DEATH_IF_SUPPORTED (   statement,
  regex 
)    GTEST_UNSUPPORTED_DEATH_TEST(statement, regex, )
#define ASSERT_DEATH_IF_SUPPORTED (   statement,
  regex 
)    GTEST_UNSUPPORTED_DEATH_TEST(statement, regex, return)