gtest: Fix output of array ASSERT/EXPECT macros

Fixes: 015383d1d7 ("gtest: Add mesa-gtest-extras.h with array ASSERT/EXPECT macros")
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13748>
This commit is contained in:
Caio Oliveira 2021-11-10 20:31:36 -08:00
parent deb23612f7
commit a4eecc543e
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ array_equal_pred(const char *a_expr,
result << "\n [" << std::dec << std::setw(3) << i << "]";
result << " "
<< (a[i] == b[i] ? ' ' : '*')
<< std::hex << std::setw(2) << +a[i];
<< std::hex << std::setw(sizeof(T) * 2) << +a[i];
}
result << "\n\n";