Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
gtest-death-test.h File Reference
Include dependency graph for gtest-death-test.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  testing
 

Macros

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

Functions

 testing::GTEST_DECLARE_string_ (death_test_style)
 

Macro Definition Documentation

◆ ASSERT_DEATH_IF_SUPPORTED

#define ASSERT_DEATH_IF_SUPPORTED ( statement,
regex )
Value:
GTEST_UNSUPPORTED_DEATH_TEST(statement, regex, return)
#define GTEST_UNSUPPORTED_DEATH_TEST(statement, regex, terminator)

Definition at line 336 of file gtest-death-test.h.

336# define ASSERT_DEATH_IF_SUPPORTED(statement, regex) \
337 GTEST_UNSUPPORTED_DEATH_TEST(statement, regex, return)

◆ EXPECT_DEATH_IF_SUPPORTED

#define EXPECT_DEATH_IF_SUPPORTED ( statement,
regex )
Value:
GTEST_UNSUPPORTED_DEATH_TEST(statement, regex, )

Definition at line 334 of file gtest-death-test.h.

334# define EXPECT_DEATH_IF_SUPPORTED(statement, regex) \
335 GTEST_UNSUPPORTED_DEATH_TEST(statement, regex, )

◆ GTEST_UNSUPPORTED_DEATH_TEST

#define GTEST_UNSUPPORTED_DEATH_TEST ( statement,
regex,
terminator )
Value:
GTEST_AMBIGUOUS_ELSE_BLOCKER_ \
GTEST_LOG_(WARNING) \
<< "Death tests are not supported on this platform.\n" \
<< "Statement '" #statement "' cannot be verified."; \
::testing::internal::RE::PartialMatch(".*", (regex)); \
GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \
terminator; \
} else \
::testing::Message()
GTEST_API_ bool AlwaysTrue()
Definition gtest.cc:5406

Definition at line 310 of file gtest-death-test.h.

310# define GTEST_UNSUPPORTED_DEATH_TEST(statement, regex, terminator) \
311 GTEST_AMBIGUOUS_ELSE_BLOCKER_ \
312 if (::testing::internal::AlwaysTrue()) { \
313 GTEST_LOG_(WARNING) \
314 << "Death tests are not supported on this platform.\n" \
315 << "Statement '" #statement "' cannot be verified."; \
316 } else if (::testing::internal::AlwaysFalse()) { \
317 ::testing::internal::RE::PartialMatch(".*", (regex)); \
318 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \
319 terminator; \
320 } else \
321 ::testing::Message()