googletest: ansi color fix
Adds prevents from returning nullptr by choosing default color. Issue: #4321
This commit is contained in:
parent
40412d8512
commit
e24cced08d
@ -3228,7 +3228,8 @@ static const char* GetAnsiColorCode(GTestColor color) {
|
||||
case GTestColor::kYellow:
|
||||
return "3";
|
||||
default:
|
||||
return nullptr;
|
||||
assert(false);
|
||||
return "9" ;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user