Electroneum
Loading...
Searching...
No Matches
gtest-death-test-internal.h File Reference
#include "gtest/internal/gtest-internal.h"
#include <stdio.h>
Include dependency graph for gtest-death-test-internal.h:

Go to the source code of this file.

Namespaces

namespace  testing
namespace  testing::internal

Macros

#define GTEST_UNSUPPORTED_DEATH_TEST_(statement, regex, terminator)

Functions

 testing::internal::GTEST_DECLARE_string_ (internal_run_death_test)

Macro Definition Documentation

◆ 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 at line 301 of file gtest-death-test-internal.h.

301# define GTEST_UNSUPPORTED_DEATH_TEST_(statement, regex, terminator) \
302 GTEST_AMBIGUOUS_ELSE_BLOCKER_ \
303 if (::testing::internal::AlwaysTrue()) { \
304 GTEST_LOG_(WARNING) \
305 << "Death tests are not supported on this platform.\n" \
306 << "Statement '" #statement "' cannot be verified."; \
307 } else if (::testing::internal::AlwaysFalse()) { \
308 ::testing::internal::RE::PartialMatch(".*", (regex)); \
309 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \
310 terminator; \
311 } else \
312 ::testing::Message()