summaryrefslogtreecommitdiffstats
path: root/googletest/src
diff options
context:
space:
mode:
authorFabrice de Gans-Riberi <steelskin@gmail.com>2018-05-03 20:42:31 (GMT)
committerFabrice de Gans-Riberi <steelskin@gmail.com>2018-05-03 20:42:31 (GMT)
commit8497540f396f91768a5bb825b1b6a408aae2a836 (patch)
tree906f5355565c651aa610a1a24e63cec36a040862 /googletest/src
parent13af91faff5aaec0a622601713bc4f8b89a8e108 (diff)
downloadgoogletest-8497540f396f91768a5bb825b1b6a408aae2a836.zip
googletest-8497540f396f91768a5bb825b1b6a408aae2a836.tar.gz
googletest-8497540f396f91768a5bb825b1b6a408aae2a836.tar.bz2
Fix comments
Diffstat (limited to 'googletest/src')
-rw-r--r--googletest/src/gtest-death-test.cc10
-rw-r--r--googletest/src/gtest-port.cc2
2 files changed, 6 insertions, 6 deletions
diff --git a/googletest/src/gtest-death-test.cc b/googletest/src/gtest-death-test.cc
index a02d810..4da9e1c 100644
--- a/googletest/src/gtest-death-test.cc
+++ b/googletest/src/gtest-death-test.cc
@@ -135,8 +135,8 @@ static bool g_in_fast_death_test_child = false;
bool InDeathTestChild() {
# if GTEST_OS_WINDOWS || GTEST_OS_FUCHSIA
- // On Windows, death tests are thread-safe regardless of the value of the
- // death_test_style flag.
+ // On Windows and Fuchsia, death tests are thread-safe regardless of the value
+ // of the death_test_style flag.
return !GTEST_FLAG(internal_run_death_test).empty();
# else
@@ -164,7 +164,7 @@ bool ExitedWithCode::operator()(int exit_status) const {
return WIFEXITED(exit_status) && WEXITSTATUS(exit_status) == exit_code_;
-# endif // GTEST_OS_WINDOWS
+# endif // GTEST_OS_WINDOWS || GTEST_OS_FUCHSIA
}
# if !GTEST_OS_WINDOWS && !GTEST_OS_FUCHSIA
@@ -211,7 +211,7 @@ static std::string ExitSummary(int exit_code) {
m << " (core dumped)";
}
# endif
-# endif // GTEST_OS_WINDOWS
+# endif // GTEST_OS_WINDOWS || GTEST_OS_FUCHSIA
return m.GetString();
}
@@ -237,7 +237,7 @@ static std::string DeathTestThreadWarning(size_t thread_count) {
msg << "detected " << thread_count << " threads.";
return msg.GetString();
}
-# endif // !GTEST_OS_WINDOWS
+# endif // !GTEST_OS_WINDOWS && !GTEST_OS_FUCHSIA
// Flag characters for reporting a death test that did not die.
static const char kDeathTestLived = 'L';
diff --git a/googletest/src/gtest-port.cc b/googletest/src/gtest-port.cc
index ce59586..fa25fcc 100644
--- a/googletest/src/gtest-port.cc
+++ b/googletest/src/gtest-port.cc
@@ -66,7 +66,7 @@
#if GTEST_OS_FUCHSIA
# include <zircon/process.h>
# include <zircon/syscalls.h>
-#endif
+#endif // GTEST_OS_FUCHSIA
#include "gtest/gtest-spi.h"
#include "gtest/gtest-message.h"