Test::testLineSpacing equality assertion failed

classic Classic list List threaded Threaded
2 messages Options
Paul Menzel Paul Menzel
Reply | Threaded
Open this post in threaded view
|

Test::testLineSpacing equality assertion failed

Dear LibreOffice folks,


On ppc64le with Ubuntu 18.04 and latest LibreOffice from master one test
fails.

```
$ uname -m
ppc64le
$ git describe --dirty
libreoffice-6-1-branch-point-989-g23fa8a6ed053
$ git log --oneline -1
23fa8a6ed053 (HEAD -> master) weld SvxCharPositionPage
$ ./autogen.sh \
     --with-system-libatomic_ops \
     --with-system-libpng \
     --with-boost-system \
     --with-system-nss \
     --with-system-postgresql
[…]
$ make
[…]
$ make check
[…]
[SCK] hyphen
/dev/shm/libreoffice-core/editeng/qa/unit/core-test.cxx:202:(anonymous
namespace)::Test::testLineSpacing
equality assertion failed
- Expected: 122
- Actual  : 108

(anonymous namespace)::Test::testLineSpacing finished in: 214ms
(anonymous namespace)::Test::testConstruction finished in: 1ms
(anonymous namespace)::Test::testUnoTextFields finished in: 1ms
text is 201d
(anonymous namespace)::Test::testAutocorrect finished in: 5ms
(anonymous namespace)::Test::testHyperlinkCopyPaste finished in: 20ms
(anonymous namespace)::Test::testCopyPaste finished in: 9ms
(anonymous namespace)::Test::testMultiParaSelCopyPaste finished in: 9ms
(anonymous namespace)::Test::testTabsCopyPaste finished in: 12ms
(anonymous namespace)::Test::testHyperlinkSearch finished in: 6ms
(anonymous namespace)::Test::testBoldItalicCopyPaste finished in: 17ms
(anonymous namespace)::Test::testUnderlineCopyPaste finished in: 11ms
(anonymous namespace)::Test::testMultiParaCopyPaste finished in: 10ms
(anonymous namespace)::Test::testParaBoldItalicCopyPaste finished in: 12ms
(anonymous namespace)::Test::testParaStartCopyPaste finished in: 8ms
(anonymous namespace)::Test::testSectionAttributes finished in: 1ms
(anonymous namespace)::Test::testLargeParaCopyPaste finished in: 11ms
(anonymous namespace)::Test::testTransliterate finished in: 1ms
(anonymous namespace)::Test::testHoriAlignIgnoreTrailingWhitespace
finished in: 0ms
core-test.cxx:202:Assertion
Test name: (anonymous namespace)::Test::testLineSpacing
equality assertion failed
- Expected: 122
- Actual  : 108

Failures !!!
Run: 18   Failure total: 1   Failures: 1   Errors: 0
[…]
```


Kind regards,

Paul

_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
Michael Weghorn Michael Weghorn
Reply | Threaded
Open this post in threaded view
|

Re: Test::testLineSpacing equality assertion failed

Hi Paul and Szymon,

I had the same issue in the past on Debian testing.

The cause seems to be that the test is using the "Liberation Sans" font.
By now, there is another version v2 of the Liberation fonts which seems
to behave differently from what v1 did in that test case.

As a workaround, installing the "fonts-liberation" package and
uninstalling "fonts-liberation2" made the test pass for me on Debian
testing.

@Szymon: Do you possibly have a quick idea on what the best way to deal
with this is?
(I'm asking since the test was added by your commit
2bd27176356c1c670fde1a59d3ffafd10ad0e4ee).

Regards,
Michael


On 2018-06-14 08:04, Paul Menzel wrote:

> Dear LibreOffice folks,
>
>
> On ppc64le with Ubuntu 18.04 and latest LibreOffice from master one test
> fails.
>
> ```
> $ uname -m
> ppc64le
> $ git describe --dirty
> libreoffice-6-1-branch-point-989-g23fa8a6ed053
> $ git log --oneline -1
> 23fa8a6ed053 (HEAD -> master) weld SvxCharPositionPage
> $ ./autogen.sh \
>     --with-system-libatomic_ops \
>     --with-system-libpng \
>     --with-boost-system \
>     --with-system-nss \
>     --with-system-postgresql
> […]
> $ make
> […]
> $ make check
> […]
> [SCK] hyphen
> /dev/shm/libreoffice-core/editeng/qa/unit/core-test.cxx:202:(anonymous
> namespace)::Test::testLineSpacing
> equality assertion failed
> - Expected: 122
> - Actual  : 108
>
> (anonymous namespace)::Test::testLineSpacing finished in: 214ms
> (anonymous namespace)::Test::testConstruction finished in: 1ms
> (anonymous namespace)::Test::testUnoTextFields finished in: 1ms
> text is 201d
> (anonymous namespace)::Test::testAutocorrect finished in: 5ms
> (anonymous namespace)::Test::testHyperlinkCopyPaste finished in: 20ms
> (anonymous namespace)::Test::testCopyPaste finished in: 9ms
> (anonymous namespace)::Test::testMultiParaSelCopyPaste finished in: 9ms
> (anonymous namespace)::Test::testTabsCopyPaste finished in: 12ms
> (anonymous namespace)::Test::testHyperlinkSearch finished in: 6ms
> (anonymous namespace)::Test::testBoldItalicCopyPaste finished in: 17ms
> (anonymous namespace)::Test::testUnderlineCopyPaste finished in: 11ms
> (anonymous namespace)::Test::testMultiParaCopyPaste finished in: 10ms
> (anonymous namespace)::Test::testParaBoldItalicCopyPaste finished in: 12ms
> (anonymous namespace)::Test::testParaStartCopyPaste finished in: 8ms
> (anonymous namespace)::Test::testSectionAttributes finished in: 1ms
> (anonymous namespace)::Test::testLargeParaCopyPaste finished in: 11ms
> (anonymous namespace)::Test::testTransliterate finished in: 1ms
> (anonymous namespace)::Test::testHoriAlignIgnoreTrailingWhitespace
> finished in: 0ms
> core-test.cxx:202:Assertion
> Test name: (anonymous namespace)::Test::testLineSpacing
> equality assertion failed
> - Expected: 122
> - Actual  : 108
>
> Failures !!!
> Run: 18   Failure total: 1   Failures: 1   Errors: 0
> […]
> ```
>
>
> Kind regards,
>
> Paul
>
> _______________________________________________
> LibreOffice mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/libreoffice
_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice