summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkosak@google.com <kosak@google.com@861a406c-534a-0410-8894-cb66d6ee9925>2015-04-28 22:04:35 +0000
committerkosak@google.com <kosak@google.com@861a406c-534a-0410-8894-cb66d6ee9925>2015-04-28 22:04:35 +0000
commita734b14b9b9d8f267e4e83fae0be327331426ae7 (patch)
tree7f171aca1dca68690a0010f67bb4f3be42531913 /test
parentddb65611b11c0199df68aa8bbd5e61c89f031e90 (diff)
downloadgoogletest-a734b14b9b9d8f267e4e83fae0be327331426ae7.tar.gz
urxvt supports colors
git-svn-id: http://googletest.googlecode.com/svn/trunk@711 861a406c-534a-0410-8894-cb66d6ee9925
Diffstat (limited to 'test')
-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 42638ce..5509a6b 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.