sc: test failure depending on order of execution

Miklos Vajna vmiklos at collabora.com
Mon Feb 27 07:18:20 UTC 2023


Hi Xisco,

On Fri, Feb 24, 2023 at 02:40:23PM +0100, Xisco Fauli <xiscofauli at libreoffice.org> wrote:
> it seems there is a test in sc/qa/unit/subsequent_export_test2.cxx that
> fails depending on the order of execution.
> 
> If testTdf121260 is executed before testTdf107586, then it passes,
> otherwise, it fails with
> 
> ##Failure Location unknown## : Error
> Test name: ScExportTest2::testTdf121260
> An uncaught exception of type com.sun.star.container.NoSuchElementException
> - /home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/package/source/zippackage/zipfileaccess.cxx:263:
> at /home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/package/source/zippackage/zipfileaccess.cxx:263
> 
> which means the file 'xl/charts/chart1.xml' doesn't exist in the zip file
> and parseExport fails. See https://gerrit.libreoffice.org/c/core/+/147622
> 
> Anyone has any idea why the file is not created if testTdf107586 is executed
> first ?

Not really, but the way I would debug this is to see how
XmlFilterBase::openFragmentStream() at
oox/source/core/xmlfilterbase.cxx:495 gets called in the good case, and
then hopefully the backtrace would give you some idea how it's not
called in the bad case.

My first guess would be some static variable, but who knows.

Regards,

Miklos


More information about the LibreOffice mailing list