Test File: sc/qa/unit/data/functions/fods/chiinv.fods: fails with Assertion

Alex McMurchy mcmurchy1917-libreoffice at yahoo.co.uk
Wed Aug 31 18:30:35 UTC 2016


Hi All

I've pulled from git and git branch says I'm on

* master

first line of AutoGen is
> Running ./configure with '--disable-ccache --disable-gtk3 
> --with-parallelism=3 --without-junit --without-gssapi --without-krb5 
> --srcdir=/home/master/master --enable-option-checking=fatal'

When compiling LibreOffice I get a failed Unit test. The problem occurs 
in  sc/qa/unit/functions_test.cxx with

> CPPUNIT_ASSERT_DOUBLES_EQUAL(1.0, rDoc.GetValue(1, 2, 0), 1e-14);

whilst testing sc/qa/unit/data/functions/fods/chiinv.fods. The code 
sc/qa/unit/functions_test.cxx looks to me as though it's performed for 
all these .fods test files so why it should fail on one and not the rest 
is strange indeed.


Any suggestions on how I can resolve this problem will be appreciated.

Alex

The error is

> Testing 
> file:///home/master/master/sc/qa/unit/data/functions/fods/chidist.fods:
> Tested 
> file:///home/master/master/sc/qa/unit/data/functions/fods/chidist.fods: 
> Pass (491ms)
> Testing 
> file:///home/master/master/sc/qa/unit/data/functions/fods/chiinv.fods:
> /home/master/master/sc/qa/unit/functions_test.cxx:80:FunctionsTest::testFormulasFODS
> double equality assertion failed
> - Expected: 1
> - Actual  : 0
> - Delta   : 1e-14
>
> FunctionsTest::testFormulasFODS finished in: 18129ms
> functions_test.cxx:80:Assertion
> Test name: FunctionsTest::testFormulasFODS
> double equality assertion failed
> - Expected: 1
> - Actual  : 0
> - Delta   : 1e-14
>
> Failures !!!
> Run: 1   Failure total: 1   Failures: 1   Errors: 0
>
> Error: a unit test failed, please do one of:
> make CppunitTest_sc_functions_test CPPUNITTRACE="gdb --args"
>     # for interactive debugging on Linux
> make CppunitTest_sc_functions_test VALGRIND=memcheck
>     # for memory checking
> make CppunitTest_sc_functions_test DEBUGCPPUNIT=TRUE
>     # for exception catching
>
> make[1]: *** 
> [/home/master/master/workdir/CppunitTest/sc_functions_test.test] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make: *** [build] Error 2
> Compilation of libreoffice failed with 2 at Wed Aug 31 09:29:33 BST 2016



More information about the LibreOffice mailing list