ooxmlexport test cases are executed twice

Miklos Vajna vmiklos at collabora.co.uk
Fri Oct 25 14:09:45 CEST 2013


Hi Tushar,

On Fri, Oct 25, 2013 at 04:10:35PM +0530, Tushar Bende <tushar.bende at synerzip.com> wrote:
> I observed that while running* make CppunitTest_sw_ooxmlexport*  some test
> cases are executed twice.(to be precise 61 out of 75 test cases)
> I checked code for root cause and observed that it is because of below code
> in *ooxmlexport.cxx line 254*
> *
> *
>     for (unsigned int i = 0; i < SAL_N_ELEMENTS(aMethods); ++i)
>     {
>         MethodEntry<Test>& rEntry = aMethods[i];
>         load("/sw/qa/extras/ooxmlexport/data/", rEntry.pName);
>         // If the testcase is stored in some other format, it's pointless
> to test.
>         if (OString(rEntry.pName).endsWith(".docx") &&
> std::find(vBlacklist.begin(), vBlacklist.end(), rEntry.pName) ==
> vBlacklist.end())
>           *  (this->*rEntry.pMethod)();*
>         reload("Office Open XML Text");
>        * (this->*rEntry.pMethod)();*
>         finish();
>     }
> 
> basically it is executing test case twice if
> (OString(rEntry.pName).endsWith(".docx") && std::find(vBlacklist.begin(),
> vBlacklist.end(), rEntry.pName) == vBlacklist.end()) condition is true.
> Please let me know what should be done.

Yes, that's intentional. See here for rationale:

http://opengrok.libreoffice.org/xref/core/sw/qa/extras/README#18

If that causes a problem, then there is probably some bug in the
import/export filter.

Miklos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20131025/f2ac59e1/attachment.pgp>


More information about the LibreOffice mailing list