googletest: ansi color fix

Adds prevents from returning
nullptr by choosing default color.

Issue: #4321
This commit is contained in:
Patryk Gawroński 2023-07-26 00:58:06 +02:00
parent 40412d8512
commit e24cced08d

View File

@ -3228,7 +3228,8 @@ static const char* GetAnsiColorCode(GTestColor color) {
case GTestColor::kYellow:
return "3";
default:
return nullptr;
assert(false);
return "9" ;
}
}