aboutsummaryrefslogtreecommitdiffstats
path: root/test/gtest_unittest.cc
diff options
context:
space:
mode:
authorkosak <kosak@google.com>2015-04-28 22:04:35 +0000
committerkosak <kosak@google.com>2015-04-28 22:04:35 +0000
commit1197daf3571161590dce2bc4879512ef7bc1ba67 (patch)
tree7f171aca1dca68690a0010f67bb4f3be42531913 /test/gtest_unittest.cc
parentf8c44a0ae449dd78d703e94c295287d051560217 (diff)
downloadgoogletest-1197daf3571161590dce2bc4879512ef7bc1ba67.tar.gz
googletest-1197daf3571161590dce2bc4879512ef7bc1ba67.tar.bz2
googletest-1197daf3571161590dce2bc4879512ef7bc1ba67.zip
urxvt supports colors
Diffstat (limited to 'test/gtest_unittest.cc')
-rw-r--r--test/gtest_unittest.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/gtest_unittest.cc b/test/gtest_unittest.cc
index 42638ce2..5509a6b2 100644
--- a/test/gtest_unittest.cc
+++ b/test/gtest_unittest.cc
@@ -6672,6 +6672,12 @@ TEST(ColoredOutputTest, UsesColorsWhenTermSupportsColors) {
SetEnv("TERM", "screen-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.
+
+ SetEnv("TERM", "rxvt-unicode-256color"); // TERM supports colors.
+ EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
+
SetEnv("TERM", "linux"); // TERM supports colors.
EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.