diff options
author | Lydia Stepanek <lydia.stepanek@mongodb.com> | 2020-08-21 14:53:06 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-08-21 19:19:35 +0000 |
commit | de3f9cdede48b8c04683ccfc3f1913f38cc29e52 (patch) | |
tree | 684d4e11ad14976d46999c5fb54f68f91c2ea763 /src/mongo/unittest | |
parent | 73d4503b2542d0102e0fd096bd0c8cc1b5155f96 (diff) | |
download | mongo-de3f9cdede48b8c04683ccfc3f1913f38cc29e52.tar.gz |
SERVER-50426 Add a delimiter indicating the end of a death test run
(cherry picked from commit bd82bb0ad816d68ff8b5a89647a3394b6acdac9d)
Diffstat (limited to 'src/mongo/unittest')
-rw-r--r-- | src/mongo/unittest/death_test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/unittest/death_test.cpp b/src/mongo/unittest/death_test.cpp index 3cba33b8ccd..3ada74ededb 100644 --- a/src/mongo/unittest/death_test.cpp +++ b/src/mongo/unittest/death_test.cpp @@ -120,6 +120,9 @@ void DeathTestBase::_doTest() { if (fclose(pf) != 0) logAndThrowWithErrno("fclose(pf)"); }); + LOGV2(5042601, "Death test starting"); + auto alwaysLogExit = makeGuard([] { LOGV2(5042602, "Death test finishing"); }); + char* lineBuf = nullptr; size_t lineBufSize = 0; auto lineBufGuard = makeGuard([&] { free(lineBuf); }); @@ -179,6 +182,7 @@ void DeathTestBase::_doTest() { ASSERT_STRING_CONTAINS(os.str(), _doGetPattern()) << " @" << _getFile() << ":" << _getLine(); } + LOGV2(5042603, "Death test test died as expected"); return; } else { invariant(!WIFSTOPPED(stat)); |