aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2020-01-29 10:37:15 -0500
committerAndy Getz <durandal@google.com>2020-02-07 13:34:33 -0500
commit7bc671b8e0de264e58bb479535dc66f3be70ee4f (patch)
tree9d95d03d9b881a4230c3f8c0964391af57bb6d88
parent38f6608e8790437063fff2c960609e95f0ead6fe (diff)
downloadgoogletest-7bc671b8e0de264e58bb479535dc66f3be70ee4f.tar.gz
googletest-7bc671b8e0de264e58bb479535dc66f3be70ee4f.tar.bz2
googletest-7bc671b8e0de264e58bb479535dc66f3be70ee4f.zip
Googletest export
Add documentation for ASSERT_DEBUG_DEATH/EXPECT_DEBUG_DEATH PiperOrigin-RevId: 292138974
-rw-r--r--googletest/docs/advanced.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/googletest/docs/advanced.md b/googletest/docs/advanced.md
index 8ce1f3e7..5677643d 100644
--- a/googletest/docs/advanced.md
+++ b/googletest/docs/advanced.md
@@ -638,6 +638,7 @@ Fatal assertion | Nonfatal assertion
------------------------------------------------ | ------------------------------------------------ | --------
`ASSERT_DEATH(statement, matcher);` | `EXPECT_DEATH(statement, matcher);` | `statement` crashes with the given error
`ASSERT_DEATH_IF_SUPPORTED(statement, matcher);` | `EXPECT_DEATH_IF_SUPPORTED(statement, matcher);` | if death tests are supported, verifies that `statement` crashes with the given error; otherwise verifies nothing
+`ASSERT_DEBUG_DEATH(statement, matcher);` | `EXPECT_DEBUG_DEATH(statement, matcher);` | `statement` crashes with the given error **in debug mode**. When not in debug (i.e. `NDEBUG` is defined), this just executes `statement`
`ASSERT_EXIT(statement, predicate, matcher);` | `EXPECT_EXIT(statement, predicate, matcher);` | `statement` exits with the given error, and its exit code matches `predicate`
where `statement` is a statement that is expected to cause the process to die,