summaryrefslogtreecommitdiffstats
path: root/googletest/src
diff options
context:
space:
mode:
authorCopybara-Service <copybara-worker@google.com>2022-06-13 15:38:29 (GMT)
committerCopybara-Service <copybara-worker@google.com>2022-06-13 15:38:29 (GMT)
commitb644b4fbbf07e35629b0daa44ec4110ddcbe2036 (patch)
tree58536754b719aea9cb23a451ba6bda5205f8e99b /googletest/src
parentb1f84bf1763b1010597bff13c79b5388eebdf205 (diff)
parent3727a9007512507e247fdab69c62e039f29ff80b (diff)
downloadgoogletest-b644b4fbbf07e35629b0daa44ec4110ddcbe2036.zip
googletest-b644b4fbbf07e35629b0daa44ec4110ddcbe2036.tar.gz
googletest-b644b4fbbf07e35629b0daa44ec4110ddcbe2036.tar.bz2
Merge pull request #3866 from eidosmontreal:simplify_shouldusecolor
PiperOrigin-RevId: 454616721 Change-Id: I33b5671646ec027da48cc941baf84b4ddc722e07
Diffstat (limited to 'googletest/src')
-rw-r--r--googletest/src/gtest.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc
index 1acad59..6f31dd2 100644
--- a/googletest/src/gtest.cc
+++ b/googletest/src/gtest.cc
@@ -3278,14 +3278,9 @@ static void ColoredPrintf(GTestColor color, const char* fmt, ...) {
va_list args;
va_start(args, fmt);
-#if GTEST_OS_WINDOWS_MOBILE || GTEST_OS_ZOS || GTEST_OS_IOS || \
- GTEST_OS_WINDOWS_PHONE || GTEST_OS_WINDOWS_RT || defined(ESP_PLATFORM)
- const bool use_color = AlwaysFalse();
-#else
static const bool in_color_mode =
ShouldUseColor(posix::IsATTY(posix::FileNo(stdout)) != 0);
const bool use_color = in_color_mode && (color != GTestColor::kDefault);
-#endif // GTEST_OS_WINDOWS_MOBILE || GTEST_OS_ZOS
if (!use_color) {
vprintf(fmt, args);