Hi Regina,
This patch https://gerrit.libreoffice.org/c/core/+/194552 should help
with that.
On 11/25/25 18:38, Regina Henschel wrote:
Hi all,
I want to add a unit test to
https://gerrit.libreoffice.org/c/core/+/194433
I thought the test suite
https://opengrok.libreoffice.org/xref/core/sc/qa/unit/dataproviders_test.cxx
would be suitable.
But I cannot load a file.
What I do:
1.
Put a minimal (a short text in one cell) spreadsheet file
tdf169541_blank_sheet.ods into the folder `dataprovider`
CopyPath from the Windows explorer gives then:
"C:\buildlo8\core\sc\qa\unit\data\dataprovider\tdf169541_blank_sheet.ods"
2.
Add the test
void ScDataProvidersTest::testLoad()
{
createScDoc("tdf169541_blank_sheet.ods");
ScDocument* pDoc = getScDoc();
CPPUNIT_ASSERT(pDoc);
}
to the suite.
Running the test gives the error
Test name: ScDataProvidersTest::testLoad
assertion failed
- Expression: xComponent.is()
- loading failed:
file:///C:/buildlo8/core/sc/qa/unit/data/dataprovider/tdf169541_blank_sheet.ods
Of cause this is not the test for the patch. But it shows, where my
intended test already fails.
I work with Cygwin and VS2022.
I'm at a loss.
Kind regards,
Regina
--
Xisco Faulí
LibreOffice QA Team
IRC: x1sc0