Bug 293292

Summary: kde-base/analitza-4.8.0 fails test phase; Compared values are not the same
Product: [Applications] kalgebra Reporter: IAN DELANEY <della5>
Component: generalAssignee: Aleix Pol <aleixpol>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, johu, stupor_scurvy343
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description IAN DELANEY 2012-02-04 14:05:57 UTC
Version:           unspecified (using KDE 4.8.0) 
OS:                Linux

FEATURES=test emerge analitza
                



Reproducible: Always

Steps to Reproduce:
# FEATURES=test emerge analitza

Actual Results:  
5/9 Testing: mathmlpresentationtest
5/9 Test: mathmlpresentationtest
Command: "/mnt/gen2/tmpdir/portage/kde-base/analitza-4.8.0/work/analitza-4.8.0_build/analitza/tests/mathmlpresentationtest.shell"
Directory: /mnt/gen2/tmpdir/portage/kde-base/analitza-4.8.0/work/analitza-4.8.0_build/analitza/tests
"mathmlpresentationtest" start time: Feb 04 20:40 WST
Output:
----------------------------------------------------------
********* Start testing of MathMLPresentationTest *********
Config: Using QTest library 4.8.0, Qt 4.8.0
PASS   : MathMLPresentationTest::initTestCase()
PASS   : MathMLPresentationTest::testSimple()
FAIL!  : MathMLPresentationTest::testConversion(13th-test) 'e.isCorrect()' returned FALSE. ()
   Loc: [/mnt/gen2/tmpdir/portage/kde-base/analitza-4.8.0/work/analitza-4.8.0/analitza/tests/mathmlpresentationtest.cpp(211)]
FAIL!  : MathMLPresentationTest::testToPresentation(powers) Compared values are not the same
   Actual (e.toString()): 2^2^2^x
   Expected (expression): 2^(2^(2^x))
   Loc: [/mnt/gen2/tmpdir/portage/kde-base/analitza-4.8.0/work/analitza-4.8.0/analitza/tests/mathmlpresentationtest.cpp(349)]
QFATAL : MathMLPresentationTest::testToPresentation(13th-test) Received signal 11
FAIL!  : MathMLPresentationTest::testToPresentation(13th-test) Received a fatal error.
   Loc: [Unknown file(0)]
Totals: 2 passed, 3 failed, 0 skipped
********* Finished testing of MathMLPresentationTest *********
/mnt/gen2/tmpdir/portage/kde-base/analitza-4.8.0/work/analitza-4.8.0_build/analitza/tests/mathmlpresentationtest.shell: line 4: 10300 Aborted                 LD_LIBRARY_PATH=/mnt/gen2/tmpdir/portage/kde-base/analitza-4.8.0/work/analitza-4.8.0_build/lib/./:/usr/lib64:/usr/lib64:/usr/lib64/qt4${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} "/mnt/gen2/tmpdir/portage/kde-base/analitza-4.8.0/work/analitza-4.8.0_build/analitza/tests/mathmlpresentationtest" "$@"
<end of output>
Test time =   0.02 sec


Expected Results:  
Get the values right and pass the test

You appear to not have analitza included in the initial packages list.
It's a math presntation syntax error.
It's not kcalc but it has to go under something. It can go under kcalc.
No dbus dilemma here.
No point in supplying the remainder of the build TestFail log log.  The above snippet is all that it pertinent and clearly cites that .cpp files used in the tests yielding non matching values
Comment 1 Aleix Pol 2012-02-06 02:24:48 UTC
that's true indeed. I'll sort it out eventually.
Comment 2 Aleix Pol 2012-05-10 10:50:58 UTC
This test is not failing, as of yesterday.
Comment 3 stupor_scurvy343 2012-06-08 14:29:34 UTC
The tests now pass on KDE/4.8, but it looks like the changes were never pushed to master. OK to do that?
Comment 4 Aleix Pol 2012-06-08 14:44:17 UTC
Git commit cd89ec72c9e2c22ff2e5215bdf46c9c2f55a756f by Aleix Pol.
Committed on 08/06/2012 at 16:43.
Pushed by apol into branch 'master'.

Merge branch 'KDE/4.8'

Conflicts:
	analitza/providederivative.cpp

M  +1    -0    analitza/providederivative.cpp

http://commits.kde.org/analitza/cd89ec72c9e2c22ff2e5215bdf46c9c2f55a756f
Comment 5 stupor_scurvy343 2012-06-08 14:49:44 UTC
Thanks!
Comment 6 Aleix Pol 2012-06-08 14:50:11 UTC
:)