We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73d4503 commit de3f9cdCopy full SHA for de3f9cd
src/mongo/unittest/death_test.cpp
@@ -120,6 +120,9 @@ void DeathTestBase::_doTest() {
120
if (fclose(pf) != 0)
121
logAndThrowWithErrno("fclose(pf)");
122
});
123
+ LOGV2(5042601, "Death test starting");
124
+ auto alwaysLogExit = makeGuard([] { LOGV2(5042602, "Death test finishing"); });
125
+
126
char* lineBuf = nullptr;
127
size_t lineBufSize = 0;
128
auto lineBufGuard = makeGuard([&] { free(lineBuf); });
@@ -179,6 +182,7 @@ void DeathTestBase::_doTest() {
179
182
ASSERT_STRING_CONTAINS(os.str(), _doGetPattern())
180
183
<< " @" << _getFile() << ":" << _getLine();
181
184
}
185
+ LOGV2(5042603, "Death test test died as expected");
186
return;
187
} else {
188
invariant(!WIFSTOPPED(stat));
0 commit comments