summaryrefslogtreecommitdiffstats
path: root/googletest/test
diff options
context:
space:
mode:
authorJoongi Kim <me@daybreaker.info>2016-01-31 08:24:31 (GMT)
committerJoongi Kim <me@daybreaker.info>2016-01-31 08:24:31 (GMT)
commit340c6b337518d8d78c25b84375ca992351d994aa (patch)
treec519739f2505fe64d0f803c4b023399b59f83e58 /googletest/test
parent82b11b8cfcca464c2ac74b623d04e74452e74f32 (diff)
downloadgoogletest-340c6b337518d8d78c25b84375ca992351d994aa.zip
googletest-340c6b337518d8d78c25b84375ca992351d994aa.tar.gz
googletest-340c6b337518d8d78c25b84375ca992351d994aa.tar.bz2
Add tmux and tmux-256color to the colored terminal list.refs/pull/699/head
Diffstat (limited to 'googletest/test')
-rw-r--r--googletest/test/gtest_unittest.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/googletest/test/gtest_unittest.cc b/googletest/test/gtest_unittest.cc
index 60aed35..355252f 100644
--- a/googletest/test/gtest_unittest.cc
+++ b/googletest/test/gtest_unittest.cc
@@ -6840,6 +6840,12 @@ TEST(ColoredOutputTest, UsesColorsWhenTermSupportsColors) {
SetEnv("TERM", "screen-256color"); // TERM supports colors.
EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
+ SetEnv("TERM", "tmux"); // TERM supports colors.
+ EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
+
+ SetEnv("TERM", "tmux-256color"); // TERM supports colors.
+ EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
+
SetEnv("TERM", "rxvt-unicode"); // TERM supports colors.
EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.