diff options
author | Patryk Gawroński <patryk@pgawro.com> | 2023-07-25 22:58:06 (GMT) |
---|---|---|
committer | Patryk Gawroński <patryk@pgawro.com> | 2023-08-16 22:11:28 (GMT) |
commit | e24cced08d658222c903b36c713d2265e3e83345 (patch) | |
tree | 65d6312f9784d7353d8cc235f2524c560c04a96b | |
parent | 40412d85124f7c6f3d88454583c4633e5e10fc8c (diff) | |
download | googletest-e24cced08d658222c903b36c713d2265e3e83345.zip googletest-e24cced08d658222c903b36c713d2265e3e83345.tar.gz googletest-e24cced08d658222c903b36c713d2265e3e83345.tar.bz2 |
googletest: ansi color fixrefs/pull/4322/head
Adds prevents from returning
nullptr by choosing default color.
Issue: #4321
-rw-r--r-- | googletest/src/gtest.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc index 30a5cc3..e56ee1a 100644 --- a/googletest/src/gtest.cc +++ b/googletest/src/gtest.cc @@ -3228,7 +3228,8 @@ static const char* GetAnsiColorCode(GTestColor color) { case GTestColor::kYellow: return "3"; default: - return nullptr; + assert(false); + return "9" ; } } |