summaryrefslogtreecommitdiff
path: root/smoketest/libtest.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2013-03-05 16:40:01 +0000
committerMichael Meeks <michael.meeks@suse.com>2013-03-12 15:35:34 +0000
commitaf969873cb01e44aacfa34623ce1f0d51a62c895 (patch)
tree56436156bed18c9cc678687a29f6b5cdd5b5e495 /smoketest/libtest.cxx
parent07352f07ce40ef40e9b73fd05aa4f9c5eac38290 (diff)
liblibo: better init code.
Change-Id: I8757739960cb1c764a5a66bd67d34731e3dfbf31
Diffstat (limited to 'smoketest/libtest.cxx')
-rw-r--r--smoketest/libtest.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/smoketest/libtest.cxx b/smoketest/libtest.cxx
index 36c3a0c1e070..cc71d0814f80 100644
--- a/smoketest/libtest.cxx
+++ b/smoketest/libtest.cxx
@@ -46,7 +46,11 @@ void Test::test()
rtl::Bootstrap::get( rtl::OUString( "arg-soffice" ), aArgSoffice );
OString aInstall = OUStringToOString( aArgSoffice, RTL_TEXTENCODING_UTF8 );
fprintf( stderr, "liblibreoffice test: '%s'\n", aInstall.getStr() );
- assert (lo_init( aInstall.getStr() ));
+ LibLibreOffice *pOffice = lo_init( aInstall.getStr() );
+ CPPUNIT_ASSERT( pOffice != NULL );
+
+ bool bInited = pOffice->initialize( aInstall.getStr() );
+ CPPUNIT_ASSERT( bInited );
}
CPPUNIT_TEST_SUITE_REGISTRATION(Test);