On SEGVs, etc, glog will call this function to write the error to stderr. This implementation is copied from glog with the exception that we also flush coverage the first time it's called. NOTE: this is only used in coverage builds!
| 189 | // |
| 190 | // NOTE: this is only used in coverage builds! |
| 191 | void FailureWriterWithCoverage(const char* data, size_t size) { |
| 192 | FlushCoverageOnExit(); |
| 193 | |
| 194 | // Original implementation from glog: |
| 195 | if (write(STDERR_FILENO, data, size) < 0) { |
| 196 | // Ignore errors. |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | // GLog "failure function". This is called in the case of LOG(FATAL) to |
| 201 | // ensure that we flush coverage even on crashes. |
nothing calls this directly
no test coverage detected