vcl/qa/cppunit/complextext.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 8e82d2e4d91dc999e1540f16efea5dcc81f6d21b Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Feb 4 16:25:53 2022 +0000 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Mon Feb 7 15:13:12 2022 +0100 test fails with both fedora KacstBook and bundled KacstBook installed fedora KacstBook ver is less than bundled KacstBook ver so bundled is preferred, bundled KacstBook has no Latin glyphs, but glyph fallback finds system one and sees it has the missing glyphs, determines that the whole thing can be done in the fallback font, so the toplevel is unused and so "invalid" and this test fails on checking that. The test is supposed to ensure that glyph caching gives the same result as uncached, which it does, so just assert if there is a difference between cached and uncached Change-Id: I3c424a17f3e544aa64f4af98e0c151fc00b2e6e5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129437 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/vcl/qa/cppunit/complextext.cxx b/vcl/qa/cppunit/complextext.cxx index 21e1e58f96ac..5d9ac92f1f69 100644 --- a/vcl/qa/cppunit/complextext.cxx +++ b/vcl/qa/cppunit/complextext.cxx @@ -172,13 +172,11 @@ static void testCachedGlyphs( const OUString& aText, const OUString& aFontName = std::unique_ptr<SalLayout> pLayout1 = pOutputDevice->ImplLayout( aText, 0, aText.getLength(), Point(0, 0), 0, {}, SalLayoutFlags::GlyphItemsOnly); SalLayoutGlyphs aGlyphs1 = pLayout1->GetGlyphs(); - CPPUNIT_ASSERT_MESSAGE(message, aGlyphs1.IsValid()); - CPPUNIT_ASSERT_MESSAGE(message, aGlyphs1.Impl(0) != nullptr); // Reuse the cached glyphs to get glyphs again. std::unique_ptr<SalLayout> pLayout2 = pOutputDevice->ImplLayout( aText, 0, aText.getLength(), Point(0, 0), 0, {}, SalLayoutFlags::GlyphItemsOnly, nullptr, &aGlyphs1); SalLayoutGlyphs aGlyphs2 = pLayout2->GetGlyphs(); - CPPUNIT_ASSERT_MESSAGE(message, aGlyphs2.IsValid()); + CPPUNIT_ASSERT_EQUAL_MESSAGE(message, aGlyphs1.IsValid(), aGlyphs2.IsValid()); // And check it's the same. for( int level = 0; level < MAX_FALLBACK; ++level ) {