mirror of
https://github.com/google/googletest.git
synced 2025-01-09 13:45:24 +08:00
[msys] fix unittest ColoredOutputTest.UsesColorsWhenTermSupportsColors
This commit is contained in:
parent
bc2d0935b7
commit
c9fe337ae2
@ -38,14 +38,15 @@
|
|||||||
// Determines the platform on which Google Test is compiled.
|
// Determines the platform on which Google Test is compiled.
|
||||||
#ifdef __CYGWIN__
|
#ifdef __CYGWIN__
|
||||||
# define GTEST_OS_CYGWIN 1
|
# define GTEST_OS_CYGWIN 1
|
||||||
|
# elif defined(__MINGW__) || defined(__MINGW32__) || defined(__MINGW64__)
|
||||||
|
# define GTEST_OS_WINDOWS_MINGW 1
|
||||||
|
# define GTEST_OS_WINDOWS 1
|
||||||
#elif defined __SYMBIAN32__
|
#elif defined __SYMBIAN32__
|
||||||
# define GTEST_OS_SYMBIAN 1
|
# define GTEST_OS_SYMBIAN 1
|
||||||
#elif defined _WIN32
|
#elif defined _WIN32
|
||||||
# define GTEST_OS_WINDOWS 1
|
# define GTEST_OS_WINDOWS 1
|
||||||
# ifdef _WIN32_WCE
|
# ifdef _WIN32_WCE
|
||||||
# define GTEST_OS_WINDOWS_MOBILE 1
|
# define GTEST_OS_WINDOWS_MOBILE 1
|
||||||
# elif defined(__MINGW__) || defined(__MINGW32__)
|
|
||||||
# define GTEST_OS_WINDOWS_MINGW 1
|
|
||||||
# elif defined(WINAPI_FAMILY)
|
# elif defined(WINAPI_FAMILY)
|
||||||
# include <winapifamily.h>
|
# include <winapifamily.h>
|
||||||
# if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
# if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
||||||
|
@ -6826,7 +6826,7 @@ TEST(ColoredOutputTest, UsesColorsWhenStdoutIsTty) {
|
|||||||
TEST(ColoredOutputTest, UsesColorsWhenTermSupportsColors) {
|
TEST(ColoredOutputTest, UsesColorsWhenTermSupportsColors) {
|
||||||
GTEST_FLAG(color) = "auto";
|
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.
|
// On Windows, we ignore the TERM variable as it's usually not set.
|
||||||
|
|
||||||
SetEnv("TERM", "dumb");
|
SetEnv("TERM", "dumb");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user