diff options
author | Abseil Team <absl-team@google.com> | 2020-01-29 15:37:15 (GMT) |
---|---|---|
committer | Andy Getz <durandal@google.com> | 2020-02-07 18:34:33 (GMT) |
commit | 7bc671b8e0de264e58bb479535dc66f3be70ee4f (patch) | |
tree | 9d95d03d9b881a4230c3f8c0964391af57bb6d88 /googletest/docs | |
parent | 38f6608e8790437063fff2c960609e95f0ead6fe (diff) | |
download | googletest-7bc671b8e0de264e58bb479535dc66f3be70ee4f.zip googletest-7bc671b8e0de264e58bb479535dc66f3be70ee4f.tar.gz googletest-7bc671b8e0de264e58bb479535dc66f3be70ee4f.tar.bz2 |
Googletest export
Add documentation for ASSERT_DEBUG_DEATH/EXPECT_DEBUG_DEATH
PiperOrigin-RevId: 292138974
Diffstat (limited to 'googletest/docs')
-rw-r--r-- | googletest/docs/advanced.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/googletest/docs/advanced.md b/googletest/docs/advanced.md index 8ce1f3e..5677643 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, |