diff options
author | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2010-04-22 11:44:59 +0000 |
---|---|---|
committer | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2010-04-22 11:44:59 +0000 |
commit | 9f2549154b3d605f0eec2fb691c741e087b61e6f (patch) | |
tree | b6e3b13651c9f9d8a3405a3bcf292f6e2c6c68f0 /test | |
parent | edea1b14488a67ca7cbc11545a35250e2492da9f (diff) | |
download | googletest-9f2549154b3d605f0eec2fb691c741e087b61e6f.tar.gz |
Implements color output in GNU Screen sessions (issue 277).
git-svn-id: http://googletest.googlecode.com/svn/trunk@421 861a406c-534a-0410-8894-cb66d6ee9925
Diffstat (limited to 'test')
-rw-r--r-- | test/gtest_unittest.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/gtest_unittest.cc b/test/gtest_unittest.cc index a14f065..adc0fff 100644 --- a/test/gtest_unittest.cc +++ b/test/gtest_unittest.cc @@ -6264,8 +6264,17 @@ TEST(ColoredOutputTest, UsesColorsWhenTermSupportsColors) { SetEnv("TERM", "xterm-color"); // TERM supports colors. EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY. + SetEnv("TERM", "xterm-256color"); // TERM supports colors. + EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY. + + SetEnv("TERM", "screen"); // 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. + + SetEnv("TERM", "cygwin"); // TERM supports colors. + EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY. #endif // GTEST_OS_WINDOWS } |