aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorvladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925>2011-10-28 16:19:04 +0000
committervladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925>2011-10-28 16:19:04 +0000
commit829402edcffe712ed4c79412ca020525cd8295ad (patch)
tree9724f34e4e4a728238047ca1bd974b3c030e1d8f /include
parent83fe024fb0fefcd7069d5d4c0611eca6bf66bd1f (diff)
downloadgoogletest-829402edcffe712ed4c79412ca020525cd8295ad.tar.gz
googletest-829402edcffe712ed4c79412ca020525cd8295ad.tar.bz2
googletest-829402edcffe712ed4c79412ca020525cd8295ad.zip
Adds support for detection of running in death test child processes.
Diffstat (limited to 'include')
-rw-r--r--include/gtest/gtest-death-test.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/gtest/gtest-death-test.h b/include/gtest/gtest-death-test.h
index a27883f0..16f08b87 100644
--- a/include/gtest/gtest-death-test.h
+++ b/include/gtest/gtest-death-test.h
@@ -51,6 +51,17 @@ GTEST_DECLARE_string_(death_test_style);
#if GTEST_HAS_DEATH_TEST
+namespace internal {
+
+// Returns a Boolean value indicating whether the caller is currently
+// executing in the context of the death test child process. Tools such as
+// Valgrind heap checkers may need this to modify their behavior in death
+// tests. IMPORTANT: This is an internal utility. Using it may break the
+// implementation of death tests. User code MUST NOT use it.
+GTEST_API_ bool InDeathTestChild();
+
+} // namespace internal
+
// The following macros are useful for writing death tests.
// Here's what happens when an ASSERT_DEATH* or EXPECT_DEATH* is