Skip to content

Commit de3f9cd

Browse files
lydiastepanekEvergreen Agent
authored andcommitted
SERVER-50426 Add a delimiter indicating the end of a death test run
(cherry picked from commit bd82bb0ad816d68ff8b5a89647a3394b6acdac9d)
1 parent 73d4503 commit de3f9cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mongo/unittest/death_test.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ void DeathTestBase::_doTest() {
120120
if (fclose(pf) != 0)
121121
logAndThrowWithErrno("fclose(pf)");
122122
});
123+
LOGV2(5042601, "Death test starting");
124+
auto alwaysLogExit = makeGuard([] { LOGV2(5042602, "Death test finishing"); });
125+
123126
char* lineBuf = nullptr;
124127
size_t lineBufSize = 0;
125128
auto lineBufGuard = makeGuard([&] { free(lineBuf); });
@@ -179,6 +182,7 @@ void DeathTestBase::_doTest() {
179182
ASSERT_STRING_CONTAINS(os.str(), _doGetPattern())
180183
<< " @" << _getFile() << ":" << _getLine();
181184
}
185+
LOGV2(5042603, "Death test test died as expected");
182186
return;
183187
} else {
184188
invariant(!WIFSTOPPED(stat));

0 commit comments

Comments
 (0)