Flushes the buffers and, if severity is GTEST_FATAL, aborts the program.
| 8270 | |
| 8271 | // Flushes the buffers and, if severity is GTEST_FATAL, aborts the program. |
| 8272 | GTestLog::~GTestLog() { |
| 8273 | GetStream() << ::std::endl; |
| 8274 | if (severity_ == GTEST_FATAL) { |
| 8275 | fflush(stderr); |
| 8276 | posix::Abort(); |
| 8277 | } |
| 8278 | } |
| 8279 | // Disable Microsoft deprecation warnings for POSIX functions called from |
| 8280 | // this class (creat, dup, dup2, and close) |
| 8281 | #ifdef _MSC_VER |