Skip to content

Conversation

@gaspardpetit
Copy link
Contributor

Currently, there is redundant logic in ColoredPrintf where some cases are handled with preprocessor macro to detect embedded devices, and for the other cases, the IsATTY test is used.

Instead, this should be simplified such that IsATTY is always used, but IsATTY relies on preprocessor macros to handle the embedded cases.

This provides a single customization point when controlling if the output should use colours or not by customizing DoIsATTY in gtest-port.h

Gaspard Petit and others added 2 commits May 30, 2022 14:19
Use ShouldUseColor to set use_color instead of having a separate check for the windows mobile cases; these cases are now moved directly to `DoIsATTY`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants