Definition at line 4255 of file gtest.cc.
◆ ScopedPrematureExitFile()
testing::internal::ScopedPrematureExitFile::ScopedPrematureExitFile |
( |
const char * | premature_exit_filepath | ) |
|
|
inlineexplicit |
Definition at line 4257 of file gtest.cc.
4258 : premature_exit_filepath_(premature_exit_filepath ?
4259 premature_exit_filepath : "") {
4260
4261 if (!premature_exit_filepath_.empty()) {
4262
4263
4264
4265 FILE* pfile =
posix::FOpen(premature_exit_filepath,
"w");
4266 fwrite("0", 1, 1, pfile);
4267 fclose(pfile);
4268 }
4269 }
FILE * FOpen(const char *path, const char *mode)
◆ ~ScopedPrematureExitFile()
testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile |
( |
| ) |
|
|
inline |
Definition at line 4271 of file gtest.cc.
4271 {
4272 if (!premature_exit_filepath_.empty()) {
4274 if (retval) {
4275 GTEST_LOG_(ERROR) <<
"Failed to remove premature exit filepath \""
4276 << premature_exit_filepath_ << "\" with error "
4278 }
4279 }
4280 }
#define GTEST_LOG_(severity)
bool remove(const path &p)
The documentation for this class was generated from the following file:
- libraries/fc/include/fc/crypto/webauthn_json/thirdparty/gtest/googletest/src/gtest.cc