[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kpty] autotests: fix canReadLine() call on wrong pty
From:       Oswald Buddenhagen <ossi () kde ! org>
Date:       2014-03-09 11:55:44
Message-ID: E1WMcKW-0004WH-KV () scm ! kde ! org
[Download RAW message or body]

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);

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic