Commit 93454216 authored by Tom Hughes's avatar Tom Hughes Committed by Copybara-Service
Browse files

Fix GTEST_OS_ESP8266 check

Everywhere else in the code, we check the value of GTEST_OS_ESP8266, not just
whether it is defined.

PiperOrigin-RevId: 499946909
Change-Id: I86f7e8947abb4e928fc24d1416d8237987b27845
parent e5e46b09
...@@ -5030,7 +5030,7 @@ class ScopedPrematureExitFile { ...@@ -5030,7 +5030,7 @@ class ScopedPrematureExitFile {
} }
~ScopedPrematureExitFile() { ~ScopedPrematureExitFile() {
#if !defined GTEST_OS_ESP8266 #if !GTEST_OS_ESP8266
if (!premature_exit_filepath_.empty()) { if (!premature_exit_filepath_.empty()) {
int retval = remove(premature_exit_filepath_.c_str()); int retval = remove(premature_exit_filepath_.c_str());
if (retval) { if (retval) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment