Bug 316186

Summary: cantor fails testoctave
Product: [Applications] cantor Reporter: stupor_scurvy343
Component: octave-backendAssignee: Alexander Rieder <alexanderrieder>
Status: RESOLVED FIXED    
Severity: normal CC: alexanderrieder, filipe, warquark
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description stupor_scurvy343 2013-03-05 18:46:35 UTC
At e742409f295fd5a2295aa0cbd5e67b518c0671c0, testoctave fails with octave-3.6.4:

2/3 Testing: testoctave
2/3 Test: testoctave
Command: "/home/michael/dev/kde/cantor/src/backends/octave/testoctave.shell"
Directory: /home/michael/dev/kde/cantor/src/backends/octave
"testoctave" start time: Mar 06 05:36 EST
Output:
----------------------------------------------------------
********* Start testing of TestOctave *********
Config: Using QTest library 4.8.4, Qt 4.8.4
PASS   : TestOctave::initTestCase()
PASS   : TestOctave::testSimpleCommand()
PASS   : TestOctave::testMultilineCommand()
FAIL!  : TestOctave::testPlot() 'e->result()!=0' returned FALSE. ()
   Loc: [/home/michael/dev/kde/cantor/src/backends/octave/testoctave.cpp(73)]
FAIL!  : TestOctave::testInvalidSyntax() Compared values are not the same
   Loc: [/home/michael/dev/kde/cantor/src/backends/octave/testoctave.cpp(84)]
PASS   : TestOctave::cleanupTestCase()
Totals: 4 passed, 2 failed, 0 skipped
********* Finished testing of TestOctave *********
<end of output>
Test time =  12.57 sec
Comment 1 Filipe Saraiva 2016-05-26 19:43:17 UTC
Currently testInvalidSyntax is working but testPlot is failing. :'(
Below the output of testPlot in my computer:

QDEBUG : TestOctave::testPlot() evaluateExpression:  "cantor_plot2d('sin(x)', 'x', -10,10);"
QDEBUG : TestOctave::testPlot() OctaveExpression construtor
QDEBUG : TestOctave::testPlot() evaluate
QDEBUG : TestOctave::testPlot() Executing a plot command
QDEBUG : TestOctave::testPlot() runExpression
QDEBUG : TestOctave::testPlot() readError
QDEBUG : TestOctave::testPlot() "warning: print.m: epstool binary is not available.\nSome output formats are not available.\n"
QDEBUG : TestOctave::testPlot() currentExpressionStatusChanged
QDEBUG : TestOctave::testPlot() readError
QDEBUG : TestOctave::testPlot() "libGL error: failed to open drm device: Permission denied\nlibGL error: failed to load driver: i965\n"
QDEBUG : TestOctave::testPlot() currentExpressionStatusChanged
QDEBUG : TestOctave::testPlot() readOutput
QDEBUG : TestOctave::testPlot() readError
QDEBUG : TestOctave::testPlot() finalize:  ""
QDEBUG : TestOctave::testPlot() true true
FAIL!  : TestOctave::testPlot() 'e->result()!=0' returned FALSE. ()
Comment 2 Nikita Sirgienko 2018-04-27 20:05:58 UTC
Now, all tests (6 tests) have passed, so I wil set this as fixed.