mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 10:38:30 +02:00
gtest: backport ansi color fix
Fixes ubsan runs for Mesa3D. Adds prevents from returning nullptr by choosing default color. Upstream PR: https://github.com/google/googletest/pull/4322 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9404 Signed-off-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24783>
This commit is contained in:
parent
798becf2da
commit
05cb55abe8
1 changed files with 2 additions and 1 deletions
|
|
@ -3216,7 +3216,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