Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
8bf29723
Unverified
Commit
8bf29723
authored
Sep 20, 2018
by
Gennadiy Civil
Committed by
GitHub
Sep 20, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1843 from matlo607/fix-unittest-msys-ColoredOutputTest
[msys] fix unittest ColoredOutputTest.UsesColorsWhenTermSupportsColors
parents
09560fba
c9fe337a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
gtest-port-arch.h
googletest/include/gtest/internal/gtest-port-arch.h
+3
-2
gtest_unittest.cc
googletest/test/gtest_unittest.cc
+1
-1
No files found.
googletest/include/gtest/internal/gtest-port-arch.h
View file @
8bf29723
...
@@ -38,14 +38,15 @@
...
@@ -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)
...
...
googletest/test/gtest_unittest.cc
View file @
8bf29723
...
@@ -6826,7 +6826,7 @@ TEST(ColoredOutputTest, UsesColorsWhenStdoutIsTty) {
...
@@ -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"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment