Unit-Test Fail Error[GSOC: Slide Layout Extendibility]

Vishv Brahmbhatt vishvbrahmbhatt19 at gmail.com
Fri Jul 5 08:40:32 PDT 2013


I am working on "Slide Layout Extendibility" project for GSOC. As for one
of my initial task,I had to set up XML file and parser which reads
information from that XML file.So as of now the parser is working perfectly
and even compilation works perfectly.But the "unit test" fails.I have been
stuck on this error for last 4 days and it seems that,there is a bug in the
"unit-test" process(for XML configuration files in Impress). And I am
sharing this problem as per the advice of my mentor Thorsten(Please refer
to my commit & Error links at the end):

(1) So for setting up the configuration path of "layoutlist.xml" ,I have
made an entry of "LayoutListFiles",similar to that of "EffectFiles" in

(2) The code processing of XML is similar to that in

(3) After using xNameAccess->getByName( "LayoutListFiles" ) >>= aFiles and
expandMacros() function.The configuration file-path
*" expands to "*
*" for "installation" process.

But for "Unit-Test" ,it expands to  "*

I am using the above generated string in *parseURI(string filepath)* to get
DOM structure and then traverse through XML for information.

(4)So in-spite of unit-test errors, XML parser works perfectly,because
correct path goes into the parseURI() in the installation process(i.e
.install/program/simpress works well without any crashes).

(5)The problem here is that path generated for unit-test check is wrong:

Correct path should be: "*
*" , because at this place a new "layoutlist.xml" is generated after
But the wrong path generated as stated above is :"*
It leads to errors (i.e failed to load external entity  at "filepath..." )

Also this scenario happens for the current configuration "effects.xml" file
as well.

It would be great ,if someone can guide in correcting the "unit-test" path
and indeed removing the error.Also please correct me,if I am wrong in my

Here are the links of my commits and Errors for Reference:
Error: Error-Link <http://pastebin.com/PPUuXXQt>
 & Commit3<http://cgit.freedesktop.org/libreoffice/core/commit/?h=feature/gsoc-impresslayout&id=d5a552ee01d491e85b76dbb9c373a019ce18a06a>

Thanks and Regards,
Vishv Brahmbhatt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130705/81ad1385/attachment.html>

More information about the LibreOffice mailing list