mirror of
https://github.com/google/googletest.git
synced 2026-06-15 08:26:11 +08:00
Merge d844fa23a0bc0630e3588a48154c0c51228d39c0 into 7140cd416cecd7462a8aae488024abeee55598e4
This commit is contained in:
commit
945613719b
@ -5173,8 +5173,10 @@ class ScopedPrematureExitFile {
|
||||
// errors are ignored as there's nothing better we can do and we
|
||||
// don't want to fail the test because of this.
|
||||
FILE* pfile = posix::FOpen(premature_exit_filepath_.c_str(), "w");
|
||||
fwrite("0", 1, 1, pfile);
|
||||
fclose(pfile);
|
||||
if (pfile != nullptr) {
|
||||
fwrite("0", 1, 1, pfile);
|
||||
fclose(pfile);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user