]> git-server-git.apps.pok.os.sepia.ceph.com Git - googletest.git/commitdiff
Fix GTEST_OS_ESP8266 check
authorTom Hughes <tomhughes@google.com>
Thu, 5 Jan 2023 19:14:51 +0000 (11:14 -0800)
committerCopybara-Service <copybara-worker@google.com>
Thu, 5 Jan 2023 19:15:29 +0000 (11:15 -0800)
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

googletest/src/gtest.cc

index 08eaefbda2d752e1e75eca36cf95f6c1d766d9e1..a64e887c969d2a30fb67060a59978afe992b431b 100644 (file)
@@ -5030,7 +5030,7 @@ class ScopedPrematureExitFile {
   }
 
   ~ScopedPrematureExitFile() {
-#if !defined GTEST_OS_ESP8266
+#if !GTEST_OS_ESP8266
     if (!premature_exit_filepath_.empty()) {
       int retval = remove(premature_exit_filepath_.c_str());
       if (retval) {