summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorJack Leigh <leighman@gmx.se>2013-03-05 16:19:58 +0000
committerMichael Meeks <michael.meeks@suse.com>2013-03-12 15:35:34 +0000
commit07352f07ce40ef40e9b73fd05aa4f9c5eac38290 (patch)
tree9a0ece5e5781f2a2846a0948f50727ed467278a8 /smoketest
parent8887de72c184bec6225a952ec90433ae1b7a5b26 (diff)
liblibo: move to C++ interface.
Change-Id: Ie14a9446abd9524604feddf811d5373a26a30cbd
Diffstat (limited to 'smoketest')
-rw-r--r--smoketest/libtest.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/smoketest/libtest.cxx b/smoketest/libtest.cxx
index 39ab01bb2cf6..36c3a0c1e070 100644
--- a/smoketest/libtest.cxx
+++ b/smoketest/libtest.cxx
@@ -8,7 +8,9 @@
*/
// yuck / FIXME ...
-#include "../desktop/inc/liblibreoffice.h"
+#include "../desktop/inc/liblibreoffice.hxx"
+
+#include <assert.h>
#include <sal/types.h>
#include <rtl/ustring.hxx>
@@ -44,7 +46,7 @@ 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() );
- lo_initialize( aInstall.getStr() );
+ assert (lo_init( aInstall.getStr() ));
}
CPPUNIT_TEST_SUITE_REGISTRATION(Test);