You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Guards, when tested with testing::internal::CaptureStdout using an ASSERT_ that fails, will not restore state, will leak, and eventually crash.
A couple points:
testing::internal::CaptureStdout should only be used within Logger, and classes that want to output log messages should use Logger and not std::cout or std::cerr.
If test are leaking, look into using death tests, to ensure that leaky state does not occur.
The text was updated successfully, but these errors were encountered:
When I have time I might create some pull requests to help with this issue by getting rid of some of the std::cerr uses and replacing them with Logger instances.
Sticky note:
A couple points:
testing::internal::CaptureStdout
should only be used withinLogger
, and classes that want to output log messages should useLogger
and notstd::cout
orstd::cerr
.The text was updated successfully, but these errors were encountered: