[Libreoffice-commits] core.git: sc/qa

Stephan Bergmann sbergman at redhat.com
Wed Aug 12 05:42:18 PDT 2015


On 08/12/2015 12:22 PM, Łukasz Hryniuk wrote:
> commit 0a726cb29936b61b8f05b0863e24db212a0e6166
> Author: Łukasz Hryniuk <lukasz.hryniuk at wp.pl>
> Date:   Tue Aug 11 23:18:28 2015 +0200
>
>      tdf#89387 test for CHITEST function
>
>      Change-Id: Ifff9367e56c357f3d5026ecbf7e984368428e074
>      Reviewed-on: https://gerrit.libreoffice.org/17658
>      Tested-by: Jenkins <ci at libreoffice.org>
>      Reviewed-by: Eike Rathke <erack at redhat.com>
>      Tested-by: Eike Rathke <erack at redhat.com>

The new test code triggers a division by zero now (as seen with 
-fsanitize=undefined):

> sc/source/core/tool/interpr3.cxx:2853:59: runtime error: division by zero
>     #0 0x2b123f28fb19 in ScInterpreter::ScChiTest() sc/source/core/tool/interpr3.cxx:2853:59
>     #1 0x2b123f3488f9 in ScInterpreter::Interpret() sc/source/core/tool/interpr4.cxx:4243:43
>     #2 0x2b123df7857b in ScFormulaCell::InterpretTail(ScFormulaCell::ScInterpretTailParameter) sc/source/core/data/formulacell.cxx:1746:9
>     #3 0x2b123df692aa in ScFormulaCell::Interpret() sc/source/core/data/formulacell.cxx:1479:13
>     #4 0x2b123df4cc0f in ScFormulaCell::MaybeInterpret() sc/source/core/data/formulacell.cxx:2368:9
>     #5 0x2b123cb5547e in ScColumn::GetString(int, rtl::OUString&) const sc/source/core/data/column3.cxx:2459:9
>     #6 0x2b123e4e3224 in ScTable::GetString(short, int, rtl::OUString&) const sc/source/core/data/table2.cxx:1457:9
>     #7 0x2b123d3cb450 in ScDocument::GetString(ScAddress const&) const sc/source/core/data/document.cxx:3379:5
>     #8 0x2b123b84edc9 in Test::testFuncCHITEST() sc/qa/unit/ucalc_formula.cxx:5668:12
>     #9 0x2b123b37486d in CppUnit::TestCaller<Test>::runTest() workdir/UnpackedTarball/cppunit/include/cppunit/TestCaller.h:166:6
>     #10 0x2b11f2f9753d in CppUnit::TestCaseMethodFunctor::operator()() const workdir/UnpackedTarball/cppunit/src/cppunit/TestCase.cpp:32:5
>     #11 0x2b120b24b346 in (anonymous namespace)::Protector::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) test/source/vclbootstrapprotector.cxx:57:14
>     #12 0x2b11f2f535d7 in CppUnit::ProtectorChain::ProtectFunctor::operator()() const workdir/UnpackedTarball/cppunit/src/cppunit/ProtectorChain.cpp:20:12
>     #13 0x2b12025beab6 in (anonymous namespace)::Prot::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) unotest/source/cpp/unobootstrapprotector/unobootstrapprotector.cxx:88:12
>     #14 0x2b11f2f535d7 in CppUnit::ProtectorChain::ProtectFunctor::operator()() const workdir/UnpackedTarball/cppunit/src/cppunit/ProtectorChain.cpp:20:12
>     #15 0x2b11fe91cda8 in (anonymous namespace)::Prot::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx:63:16
>     #16 0x2b11f2f535d7 in CppUnit::ProtectorChain::ProtectFunctor::operator()() const workdir/UnpackedTarball/cppunit/src/cppunit/ProtectorChain.cpp:20:12
>     #17 0x2b11f2edc111 in CppUnit::DefaultProtector::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) workdir/UnpackedTarball/cppunit/src/cppunit/DefaultProtector.cpp:15:12
>     #18 0x2b11f2f535d7 in CppUnit::ProtectorChain::ProtectFunctor::operator()() const workdir/UnpackedTarball/cppunit/src/cppunit/ProtectorChain.cpp:20:12
>     #19 0x2b11f2f4f595 in CppUnit::ProtectorChain::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) workdir/UnpackedTarball/cppunit/src/cppunit/ProtectorChain.cpp:77:18
>     #20 0x2b11f3016b1b in CppUnit::TestResult::protect(CppUnit::Functor const&, CppUnit::Test*, std::string const&) workdir/UnpackedTarball/cppunit/src/cppunit/TestResult.cpp:181:10
>     #21 0x2b11f2f9416a in CppUnit::TestCase::run(CppUnit::TestResult*) workdir/UnpackedTarball/cppunit/src/cppunit/TestCase.cpp:91:5
>     #22 0x2b11f2f9aaa3 in CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) workdir/UnpackedTarball/cppunit/src/cppunit/TestComposite.cpp:64:5
>     #23 0x2b11f2f99a0d in CppUnit::TestComposite::run(CppUnit::TestResult*) workdir/UnpackedTarball/cppunit/src/cppunit/TestComposite.cpp:23:3
>     #24 0x2b11f2f9aaa3 in CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) workdir/UnpackedTarball/cppunit/src/cppunit/TestComposite.cpp:64:5
>     #25 0x2b11f2f99a0d in CppUnit::TestComposite::run(CppUnit::TestResult*) workdir/UnpackedTarball/cppunit/src/cppunit/TestComposite.cpp:23:3
>     #26 0x2b11f30549b6 in CppUnit::TestRunner::WrappingSuite::run(CppUnit::TestResult*) workdir/UnpackedTarball/cppunit/src/cppunit/TestRunner.cpp:47:5
>     #27 0x2b11f3014a89 in CppUnit::TestResult::runTest(CppUnit::Test*) workdir/UnpackedTarball/cppunit/src/cppunit/TestResult.cpp:148:3
>     #28 0x2b11f3055ee4 in CppUnit::TestRunner::run(CppUnit::TestResult&, std::string const&) workdir/UnpackedTarball/cppunit/src/cppunit/TestRunner.cpp:96:3
>     #29 0x4fc78e in (anonymous namespace)::ProtectedFixtureFunctor::run() const sal/cppunittester/cppunittester.cxx:276:13
>     #30 0x4f773b in sal_main() sal/cppunittester/cppunittester.cxx:379:14
>     #31 0x4f5a92 in main sal/cppunittester/cppunittester.cxx:297:1
>     #32 0x2b11f4c266ff in __libc_start_main (/lib64/libc.so.6+0x206ff)
>     #33 0x4308a8 in _start (workdir/LinkTarget/Executable/cppunittester+0x4308a8)



More information about the LibreOffice mailing list