summaryrefslogtreecommitdiff
path: root/smoketest/libtest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'smoketest/libtest.cxx')
-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);