diff options
Diffstat (limited to 'smoketest')
-rw-r--r-- | smoketest/CppunitTest_liblibreoffice.mk | 1 | ||||
-rw-r--r-- | smoketest/libtest.cxx | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/smoketest/CppunitTest_liblibreoffice.mk b/smoketest/CppunitTest_liblibreoffice.mk index 8755fe8a286d..e784a3ab2b6d 100644 --- a/smoketest/CppunitTest_liblibreoffice.mk +++ b/smoketest/CppunitTest_liblibreoffice.mk @@ -27,6 +27,7 @@ endif $(eval $(call gb_CppunitTest_add_arguments,liblibreoffice,\ -env:arg-soffice=$(liblibreoffice_SOFFICE_INST) \ + -env:arg-testarg.smoketest.doc=$(OUTDIR)/bin/smoketestdoc.sxw \ )) # vim: set noet sw=4 ts=4: diff --git a/smoketest/libtest.cxx b/smoketest/libtest.cxx index cc71d0814f80..4e452a704a43 100644 --- a/smoketest/libtest.cxx +++ b/smoketest/libtest.cxx @@ -51,6 +51,12 @@ void Test::test() bool bInited = pOffice->initialize( aInstall.getStr() ); CPPUNIT_ASSERT( bInited ); + + rtl::OUString aArgDoc; + rtl::Bootstrap::get( rtl::OUString( "arg-testarg.smoketest.doc" ), aArgDoc ); + OString aDoc = OUStringToOString ( aArgDoc, RTL_TEXTENCODING_UTF8 ); + fprintf ( stderr, "liblibreoffice doc arg: '%s'\n", aDoc.getStr() ); + pOffice->documentLoad ( aDoc.getStr() ); } CPPUNIT_TEST_SUITE_REGISTRATION(Test); |