[Libreoffice-commits] core.git: libreofficekit/qa
Andrzej Hunt
andrzej.hunt at collabora.com
Mon Jul 14 04:14:54 PDT 2014
libreofficekit/qa/unit/tiledrendering.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 44e19aa6c62c3f04239f1f096f0ec99457380019
Author: Andrzej Hunt <andrzej.hunt at collabora.com>
Date: Mon Jul 14 13:12:56 2014 +0200
LOK tiled rendering test: add some debug output.
Change-Id: I0da29204809b6a1de42d5f0fc37705497a060493
diff --git a/libreofficekit/qa/unit/tiledrendering.cxx b/libreofficekit/qa/unit/tiledrendering.cxx
index 1cc93f7..d48e304 100644
--- a/libreofficekit/qa/unit/tiledrendering.cxx
+++ b/libreofficekit/qa/unit/tiledrendering.cxx
@@ -47,9 +47,17 @@ void TiledRenderingTest::testOverlay()
scoped_ptr< Office > pOffice( lok_cpp_init(
sLOPath.c_str() ) );
+ assert( pOffice.get() );
+
scoped_ptr< Document> pDocument( pOffice->documentLoad(
sDocPath.c_str() ) );
+ if ( !pDocument.get() )
+ {
+ fprintf( stderr, "documentLoad failed: %s\n", pOffice->getError() );
+ CPPUNIT_FAIL( "Document could not be loaded -- tiled rendering not possible." );
+ }
+
// We render one large tile, then subdivide it into 4 and render those parts, and finally
// iterate over each smaller tile and check whether their contents match the large
// tile.
More information about the Libreoffice-commits
mailing list