Definition at line 5005 of file gtest.cc.
◆ ScopedPrematureExitFile()
testing::internal::ScopedPrematureExitFile::ScopedPrematureExitFile |
( |
const char * |
premature_exit_filepath | ) |
|
|
inlineexplicit |
Definition at line 5007 of file gtest.cc.
5008 : premature_exit_filepath_(premature_exit_filepath ?
5009 premature_exit_filepath : "") {
5010
5011 if (!premature_exit_filepath_.empty()) {
5012
5013
5014
5015 FILE* pfile =
posix::FOpen(premature_exit_filepath,
"w");
5016 fwrite("0", 1, 1, pfile);
5017 fclose(pfile);
5018 }
5019 }
FILE * FOpen(const char *path, const char *mode)
◆ ~ScopedPrematureExitFile()
testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile |
( |
| ) |
|
|
inline |
Definition at line 5021 of file gtest.cc.
5021 {
5022#if !defined GTEST_OS_ESP8266
5023 if (!premature_exit_filepath_.empty()) {
5024 int retval = remove(premature_exit_filepath_.c_str());
5025 if (retval) {
5027 << premature_exit_filepath_ << "\" with error "
5028 << retval;
5029 }
5030 }
5031#endif
5032 }
#define GTEST_LOG_(severity)
The documentation for this class was generated from the following file:
- /media/home/debian/src/github/tesseract-ocr/tesseract/unittest/third_party/googletest/googletest/src/gtest.cc