Log image information earlier in the image unit test

Use INFO() before some checks that may already fail to at least show in
which test the failures occur.
This commit is contained in:
Vadim Zeitlin 2022-12-18 03:30:44 +01:00
parent a8ea3eda11
commit 612dfa447a

View file

@ -949,6 +949,10 @@ void CompareImage(const wxImageHandler& handler, const wxImage& image,
return;
}
unsigned bitsPerPixel = testPalette ? 8 : (testAlpha ? 32 : 24);
wxINFO_FMT("Compare test '%s (%d-bit)' for saving",
handler.GetExtension(), bitsPerPixel);
wxMemoryInputStream memIn(memOut);
REQUIRE(memIn.IsOk());
@ -956,10 +960,6 @@ void CompareImage(const wxImageHandler& handler, const wxImage& image,
REQUIRE(actual.IsOk());
const wxImage *expected = compareTo ? compareTo : ℑ
unsigned bitsPerPixel = testPalette ? 8 : (testAlpha ? 32 : 24);
wxINFO_FMT("Compare test '%s (%d-bit)' for saving",
handler.GetExtension(), bitsPerPixel);
CHECK_THAT(actual, RGBSameAs(*expected));
#if wxUSE_PALETTE