Review Request 108385: Reduce risk of timeout and race condition in KPtyProcessTest

Jon Severinsson jon at severinsson.net
Sun Jan 13 13:03:38 UTC 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/108385/
-----------------------------------------------------------

(Updated Jan. 13, 2013, 1:03 p.m.)


Review request for KDE Frameworks.


Changes
-------

Thanks, I had missed that method.

Did a more thorough check (sleep in a limited for-loop after a conditional break), giving a slightly smaller performance penalty than last patch (though not much, the checking takes some time too), and a further failure rate reduction to 2% (4 out of 200 test runs).


Description (updated)
-------

Increase timeout, and sleep a while after waitForReadyRead() returns,
as it only guarantees that *some* data is available to read, while
the test assumes that a full line of data is available to read...

This reduces failure rate from 10% to 2% on my setup.


Diffs (updated)
-----

  kpty/tests/kptyprocesstest.cpp b95ae26 

Diff: http://git.reviewboard.kde.org/r/108385/diff/


Testing
-------


Thanks,

Jon Severinsson

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20130113/fb8dad1a/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list