From kde-commits Sun Mar 09 11:55:44 2014 From: Oswald Buddenhagen Date: Sun, 09 Mar 2014 11:55:44 +0000 To: kde-commits Subject: [kpty] autotests: fix canReadLine() call on wrong pty Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=139436615328590 Git commit a9e7c3927757d5231737e69f15d337e0489b9a20 by Oswald Buddenhagen. Committed on 09/03/2014 at 11:17. Pushed by ossi into branch 'master'. fix canReadLine() call on wrong pty M +1 -1 autotests/kptyprocesstest.cpp http://commits.kde.org/kpty/a9e7c3927757d5231737e69f15d337e0489b9a20 diff --git a/autotests/kptyprocesstest.cpp b/autotests/kptyprocesstest.cpp index 0eaec3f..ec23726 100644 --- a/autotests/kptyprocesstest.cpp +++ b/autotests/kptyprocesstest.cpp @@ -105,7 +105,7 @@ void KPtyProcessTest::test_shared_pty() // read the result back from the second process' pty QVERIFY(p2.pty()->waitForReadyRead(1500)); for (int i =3D 0; i < 5; ++i) { - if (p.pty()->canReadLine()) { + if (p2.pty()->canReadLine()) { break; } QThread::msleep(500);