vcl/qa/cppunit/complextext.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 5b0b004107f47ebfedd68d5916aa2176dad0d27b
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Feb 4 16:25:53 2022 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Fri Feb 4 21:05:40 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/+/129499
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/qa/cppunit/complextext.cxx b/vcl/qa/cppunit/complextext.cxx
index c281e63eb7ff..1aed3fe7ba20 100644
--- a/vcl/qa/cppunit/complextext.cxx
+++ b/vcl/qa/cppunit/complextext.cxx
@@ -173,13 +173,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 )
     {

Reply via email to