summaryrefslogtreecommitdiff
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
commitf46f3eaf059b7b3ca00a3428c594bd477bc1839c (patch)
tree9724f34e4e4a728238047ca1bd974b3c030e1d8f /include
parent9781f5467fadad9b15a0beb983b123049dc6d5a2 (diff)
downloadgtest-f46f3eaf059b7b3ca00a3428c594bd477bc1839c.tar.gz
gtest-f46f3eaf059b7b3ca00a3428c594bd477bc1839c.tar.bz2
gtest-f46f3eaf059b7b3ca00a3428c594bd477bc1839c.tar.xz
Adds support for detection of running in death test child processes.
git-svn-id: http://googletest.googlecode.com/svn/trunk@606 861a406c-534a-0410-8894-cb66d6ee9925
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 a27883f..16f08b8 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