<p dir="ltr">OK that contains all the necessary information. You need to add xmloff/util/xo to the component list.</p>
<p dir="ltr">This component file contains the missing service specification.</p>
<div class="gmail_quote">On Aug 3, 2013 11:32 AM, "Lionel Elie Mamane" <<a href="mailto:lionel@mamane.lu">lionel@mamane.lu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Sat, Aug 03, 2013 at 05:51:37PM +0200, Markus Mohrhard wrote:<br>
<br>
> I'm until September in vacation so i can only give you some General<br>
> advice.<br>
<br>
I see. If I don't get it to work, it will have to wait.<br>
<br>
> Most of the time loading fails because of a wrong path or missing component<br>
> files. I suppose you checked the first so you might need a dbgutil build<br>
> that prints information about failed loading of component files for uno<br>
> interfaces.<br>
<br>
Well, I have a dbgutil build, but it is not enlightening:<br>
<br>
[build CUT] dbaccess_dialog_save<br>
warn:xmloff.core:29588:1:xmloff/source/core/xmlimp.cxx:851: exception caught<br>
warn:legacy.osl:29588:1:xmloff/source/core/xmlimp.cxx:852: caught an exception!<br>
in function:virtual void SvXMLImport::setTargetDocument(const com::sun::star::uno::Reference<com::sun::star::lang::XComponent>&)<br>
type: com.sun.star.lang.NotInitializedException<br>
context: N8dbaccess17ODatabaseDocumentE<br>
<br>
This one is usual / not a fatal problem: I get it each time I open an<br>
.odb file "normally". I once tried to get rid of it, but never got<br>
anywhere. But the following one, I'm more clueless about:<br>
<br>
warn:legacy.osl:29588:1:dbaccess/source/filter/xml/dbloader2.cxx:519: caught an exception!<br>
in function:virtual void dbaxml::DBContentLoader::load(const com::sun::star::uno::Reference<com::sun::star::frame::XFrame>&, const rtl::OUString&, const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>&, const com::sun::star::uno::Reference<com::sun::star::frame::XLoadEventListener>&)<br>
type: com.sun.star.uno.DeploymentException<br>
message: component context fails to supply service<br>
com.sun.star.document.DocumentRevisionListPersistence of type<br>
com.sun.star.document.XDocumentRevisionListPersistence<br>
context: N4cppu16ComponentContextE<br>
<br>
This used to be an assertion failure: Desktop disposed before terminating it, but nothing bad seems to happen anyway?<br>
macros_test.cxx:43:Assertion<br>
Test name: DialogSaveTest::test<br>
assertion failed<br>
- Expression: xComponent.is()<br>
- loading failed:<br>
file:///home/master/src/libreoffice/workdirs/master/dbaccess/<br>
qa/extras/testdocuments/testDialogSave.odb<br>
<br>
It looks weird that the path is cut in two like that, but I added a<br>
std::cerr << fileName << std::endl;<br>
and there it comes out without newline; I assume it is the cppunit<br>
stuff that does some word-wrapping.<br>
<br>
<br>
> The changes to the existing unit tests are fine.<br>
<br>
OK, will commit them.<br>
<br>
<br>
> On Aug 3, 2013 10:36 AM, "Lionel Elie Mamane" <<a href="mailto:lionel@mamane.lu">lionel@mamane.lu</a>> wrote:<br>
><br>
> > Thanks for these pointers. I think I mostly got it, but it fails for<br>
> > me, and not at the place I expected it to.<br>
> ><br>
> > Could you please take a look at branch private/lmamane/basetest ?<br>
> ><br>
> > It contains:<br>
> ><br>
> > commit d965888eb4a0be4c0bdd33fb0b401546de48af0b<br>
> > Author: Lionel Elie Mamane <<a href="mailto:lionel@mamane.lu">lionel@mamane.lu</a>><br>
> > Date: Sat Aug 3 10:50:14 2013 +0200<br>
> ><br>
> > proposed changes to other unittests<br>
> ><br>
> > Change-Id: I64769fee917c5d8c6450a19ad53fdf795e280c98<br>
> ><br>
> > Just things I found weird in existing tests I took inspiration of, but<br>
> > before pushing to master, want a quick check by you.<br>
> ><br>
> > Then it contains:<br>
> ><br>
> > commit bbcc93b3ad2eec0a717b5c59053519cc668cb27b<br>
> > Author: Lionel Elie Mamane <<a href="mailto:lionel@mamane.lu">lionel@mamane.lu</a>><br>
> > Date: Sat Aug 3 10:49:41 2013 +0200<br>
> ><br>
> > first stab at unittest for fdo#67685<br>
> ><br>
> > Change-Id: I44500717109a026d7c71e6494daacbea1f224263<br>
> ><br>
> > Which is the unittest I wanted to add, but it does not work. It fails<br>
> > at:<br>
> ><br>
> > Test name: DialogSaveTest::test<br>
> > assertion failed<br>
> > - Expression: xComponent.is()<br>
> > - loading failed:<br>
> > file:///home/master/src/libreoffice/workdirs/master/dbaccess/<br>
> > qa/extras/testdocuments/testDialogSave.odb<br>
> ><br>
> > Dunno what wrong. Thanks in advance for your help.<br>
> ><br>
> ><br>
> > On Sat, Aug 03, 2013 at 02:35:49AM +0200, Markus Mohrhard wrote:<br>
> > > Hey Lionel,<br>
> > ><br>
> > > So you basically have two options. We already have a test concept where<br>
> > we<br>
> > > open a file and execute a basic macro in it. You can find an example for<br>
> > it<br>
> > > in sc/qa/extras/macros-test.cxx<br>
> > ><br>
> > > The other more flexible option is that you open a document and call the<br>
> > uno<br>
> > > calls yourself from c++. The advantage of the second option is that it<br>
> > > allows to add additional assertions and easier debugging but it takes a<br>
> > bit<br>
> > > more code.<br>
> > ><br>
> > > Regards,<br>
> > > Markus<br>
> > > On Aug 2, 2013 5:59 PM, "Lionel Elie Mamane" <<a href="mailto:lionel@mamane.lu">lionel@mamane.lu</a>> wrote:<br>
> > ><br>
> > > > I'd appreciate some help in writing a unittest (subsequenttest?) for<br>
> > > > <a href="https://bugs.freedesktop.org/67685" target="_blank">https://bugs.freedesktop.org/67685</a><br>
> > > ><br>
> > > > It is the second time such a bug crops up, I'd like to prevent it.<br>
> > > ><br>
> > > > Basically, we "just" need to open an .odb file, run a Basic macro (we<br>
> > > > can set it to autorun on document load), then save the file, and<br>
> > > > inspect the result.<br>
> > > ><br>
> > > > Thanks in advance!<br>
> > > ><br>
> > > > --<br>
> > > > Lionel<br>
> ><br>
<br>
> _______________________________________________<br>
> LibreOffice mailing list<br>
> <a href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/libreoffice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
<br>
</blockquote></div>