D26293: Add CopyPaste unit test for spreadsheet

Alexander Semke noreply at phabricator.kde.org
Sun Jan 19 11:10:58 GMT 2020


asemke added a comment.


  In D26293#596697 <https://phabricator.kde.org/D26293#596697>, @shubham wrote:
  
  > @asemke But the test still fails with:
  >
  >   ********* Start testing of CopyPasteTest *********
  >   Config: Using QtTest library 5.13.2, Qt 5.13.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.4.0)
  >   PASS   : CopyPasteTest::initTestCase()
  >   KCrash: crashing... crashRecursionCounter = 2
  >   KCrash: Application Name = copypastetest path = /home/aryan/labplot/build/tests/spreadsheet pid = 5055
  >   KCrash: Arguments: /home/aryan/labplot/build/tests/spreadsheet/copypastetest 
  >   KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit
  >   sock_file=/run/user/1000/kdeinit5__0
  >   QWARN  : CopyPasteTest::testCopyPaste() QSocketNotifier: Invalid socket 9 and type 'Read', disabling...
  >  
  >
  
  
  It crashes in line 50 at
  
    sheet->column(2)->setValueAt(0, 1000.0);
  
  On default, the spreadsheet is created with two columns. Here you want to set the value in the third column that is not available. If you want to work with more than two columns, you need to add more columns first. You can use spreadsheet->setColumnCount() to set the number of columns.

REPOSITORY
  R262 LabPlot

REVISION DETAIL
  https://phabricator.kde.org/D26293

To: shubham, asemke, sgerlach
Cc: apol, kde-edu, #labplot, narvaez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20200119/fd17efd7/attachment-0001.html>


More information about the kde-edu mailing list