Date: prev next · Thread: first prev next last
2019 Archives by date, by thread · List index


Ever since the additional unit tests were enabled with
https://cgit.freedesktop.org/libreoffice/core/commit/?id=3f7e8ddea89f6340cd18b5b34f5a7c5f503962be

The CppunitTest_sw_ooxmlexport3 unit test is failing when display scaling does not equal 100%


For 125% the test is failing with the following errors:



[build CUT] sw_ooxmlexport3
test_GIF_ImageCrop.docx:
D:/core/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx:704:testGIFImageCrop::Import
equality assertion failed
- Expected: 1085
- Actual  : 868

testGIFImageCrop::Import finished in: 689ms
File tested,Execution Time (ms)
test_GIF_ImageCrop.docx:
D:/core/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx:704:testGIFImageCrop::Import_Export_Import
equality assertion failed
- Expected: 1085
- Actual  : 868

File tested,Execution Time (ms)
E:  file lt-string.c: line 189: assertion `string != ((void *)0)' failed
E:  sfile lt-string.c: line 189: assertion `string != ((void *)0)' failed
E:  sfile lt-string.c: line 189: assertion `string != ((void *)0)' failed
E:  l)file lt-string.c: line 189: assertion `string != ((void *)0)' failed
mce.docx:
420
testMce::Import finished in: 440ms
test_PNG_ImageCrop.docx:
D:/core/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx:722:testPNGImageCrop::Import
equality assertion failed
- Expected: 1058
- Actual  : 847

testPNGImageCrop::Import finished in: 385ms
File tested,Execution Time (ms)
test_PNG_ImageCrop.docx:
D:/core/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx:722:testPNGImageCrop::Import_Export_Import
equality assertion failed
- Expected: 1058
- Actual  : 847

tdf106974_int32Crop.docx:
D:/core/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx:578:testTdf106974_int32Crop::Import
assertion failed
- Expression: sal_Int32( 40470 ) < aGraphicCropStruct.Right
- 37107

testTdf106974_int32Crop::Import finished in: 454ms
File tested,Execution Time (ms)
tdf106974_int32Crop.docx:
D:/core/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx:578:testTdf106974_int32Crop::Import_Export_Import
assertion failed
- Expression: sal_Int32( 40470 ) < aGraphicCropStruct.Right
- 37110

testTdf106974_int32Crop::Import_Export_Import finished in: 2363ms

floatingtbl_with_formula.docx:
1856
testFileOpenInputOutputError::Import_Export_Import finished in: 1881ms
D:/core/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx(704) : error : Assertion
Test name: testGIFImageCrop::Import
equality assertion failed
- Expected: 1085
- Actual  : 868

D:/core/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx(704) : error : Assertion
Test name: testGIFImageCrop::Import_Export_Import
equality assertion failed
- Expected: 1085
- Actual  : 868

D:/core/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx(722) : error : Assertion
Test name: testPNGImageCrop::Import
equality assertion failed
- Expected: 1058
- Actual  : 847

D:/core/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx(722) : error : Assertion
Test name: testPNGImageCrop::Import_Export_Import
equality assertion failed
- Expected: 1058
- Actual  : 847

D:/core/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx(578) : error : Assertion
Test name: testTdf106974_int32Crop::Import
assertion failed
- Expression: sal_Int32( 40470 ) < aGraphicCropStruct.Right
- 37107

D:/core/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx(578) : error : Assertion
Test name: testTdf106974_int32Crop::Import_Export_Import
assertion failed
- Expression: sal_Int32( 40470 ) < aGraphicCropStruct.Right
- 37110

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

Error: a unit test failed, please do one of:
make CppunitTest_sw_ooxmlexport3 CPPUNITTRACE=TRUE # which is a shortcut for the following line
make CppunitTest_sw_ooxmlexport3 CPPUNITTRACE="'C:/Program Files (x86)/Microsoft Visual 
Studio/2017/Community/Common7/IDE/devenv.exe' /debugexe" # for interactive debugging in Visual 
Studio
make CppunitTest_sw_ooxmlexport3 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_sw_ooxmlexport3 CPPUNIT_TEST_NAME="testXYZ" ...above mentioned params...


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.