CppunitTest_sc_tabviewobj failing on Windows MSVC 2017

Luke Benes lukebenes at hotmail.com
Sun Jun 17 03:08:45 UTC 2018


Ever since https://cgit.freedesktop.org/libreoffice/core/commit/?id=600987b4

tdf#45904 Move remaining _XCellRangeReferrer Java tests to C++

Windows builds are failing with the following error:

[build CUT] sc_arealinkobj
sc_apitest::ScTabViewObj::testSpreadsheetViewSettingsProperties finished in: 2516ms
sc_apitest::ScTabViewObj::testAddRemoveActivationEventListener finished in: 603ms
C:/core/test/source/sheet/xcellrangereferrer.cxx:32:sc_apitest::ScTabViewObj::testGetReferredCells
equality assertion failed
- Expected: Sheet: 0 StartColumn: 0 StartRow: 0 EndColumn: 6 EndRow: 13
- Actual  : Sheet: 0 StartColumn: 0 StartRow: 0 EndColumn: 6 EndRow: 23

sc_apitest::ScTabViewObj::testGetReferredCells finished in: 634ms
sc_apitest::ScTabViewObj::testGetSetActiveSheet finished in: 572ms
sc_apitest::ScTabViewObj::testFreeze finished in: 660ms
sc_apitest::ScTabViewObj::testSplit finished in: 679ms
C:/core/test/source/sheet/xcellrangereferrer.cxx(32) : error : Assertion
Test name: sc_apitest::ScTabViewObj::testGetReferredCells
equality assertion failed
- Expected: Sheet: 0 StartColumn: 0 StartRow: 0 EndColumn: 6 EndRow: 13
- Actual  : Sheet: 0 StartColumn: 0 StartRow: 0 EndColumn: 6 EndRow: 23

Failures !!!
Run: 6   Failure total: 1   Failures: 1   Errors: 0

Error: a unit test failed, please do one of:
make CppunitTest_sc_tabviewobj CPPUNITTRACE=TRUE # which is a shortcut for the following line
make CppunitTest_sc_tabviewobj CPPUNITTRACE="'C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/devenv.exe' /debugexe" # for interactive debugging in Visual Studio
make CppunitTest_sc_tabviewobj CPPUNITTRACE="drmemory -free_max_frames 20" # for memory checking (install Dr.Memory first, and put it to your PATH)

You can limit the execution to just one particular test by:

make CppunitTest_sc_tabviewobj CPPUNIT_TEST_NAME="testXYZ" ...above mentioned params...

make[1]:
make[1]:
Makefile:286: recipe for target 'build' failed



More information about the LibreOffice mailing list