Hi Tushar, On Fri, Oct 25, 2013 at 04:10:35PM +0530, Tushar Bende <tushar.bende@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
Attachment:
signature.asc
Description: Digital signature