Flushes the buffers and, if severity is GTEST_FATAL, aborts the program.
| 10759 | |
| 10760 | // Flushes the buffers and, if severity is GTEST_FATAL, aborts the program. |
| 10761 | GTestLog::~GTestLog() { |
| 10762 | GetStream() << ::std::endl; |
| 10763 | if (severity_ == GTEST_FATAL) { |
| 10764 | fflush(stderr); |
| 10765 | posix::Abort(); |
| 10766 | } |
| 10767 | } |
| 10768 | |
| 10769 | // Disable Microsoft deprecation warnings for POSIX functions called from |
| 10770 | // this class (creat, dup, dup2, and close) |