mirror of
https://github.com/google/googletest.git
synced 2025-04-10 15:11:10 +00:00
googletest: ansi color fix
Adds prevents from returning nullptr by choosing default color. Issue: #4321
This commit is contained in:
parent
40412d8512
commit
e24cced08d
1 changed files with 2 additions and 1 deletions
|
@ -3228,7 +3228,8 @@ static const char* GetAnsiColorCode(GTestColor color) {
|
|||
case GTestColor::kYellow:
|
||||
return "3";
|
||||
default:
|
||||
return nullptr;
|
||||
assert(false);
|
||||
return "9" ;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue