[msys] fix unittest ColoredOutputTest.UsesColorsWhenTermSupportsColors

This commit is contained in:
Matthieu Longo
2018-09-17 18:17:10 +02:00
committed by Matthieu Longo
parent bc2d0935b7
commit c9fe337ae2
2 changed files with 4 additions and 3 deletions

View File

@@ -6826,7 +6826,7 @@ TEST(ColoredOutputTest, UsesColorsWhenStdoutIsTty) {
TEST(ColoredOutputTest, UsesColorsWhenTermSupportsColors) {
GTEST_FLAG(color) = "auto";
#if GTEST_OS_WINDOWS
#if GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_MINGW
// On Windows, we ignore the TERM variable as it's usually not set.
SetEnv("TERM", "dumb");