[konsole] [Bug 164540] Konsole fails to start a session

arrowdodger bugzilla_noreply at kde.org
Sat Nov 5 15:01:07 UTC 2016


https://bugs.kde.org/show_bug.cgi?id=164540

arrowdodger <6yearold at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |6yearold at gmail.com

--- Comment #18 from arrowdodger <6yearold at gmail.com> ---
While Konsole indeed works now, the kpty tests are still failing:

Config: Using QtTest library 5.7.1, Qt 5.7.1 (x86_64-little_endian-lp64 shared
(dynamic) debug build; by Clang 3.8.0 (tags/RELEASE_380/final 262564))
PASS   : KPtyProcessTest::initTestCase()
QDEBUG : KPtyProcessTest::test_pty_basic() 0 bytes available, waiting
FAIL!  : KPtyProcessTest::test_pty_basic() 'p.pty()->waitForReadyRead(5000)'
returned FALSE. ()
   Loc: [/root/kderoot/download/git/kpty/autotests/kptyprocesstest.cpp(132)]
PASS   : KPtyProcessTest::test_pty_signals()
FAIL!  : KPtyProcessTest::test_ctty() Compared values are not the same
   Actual   (output)                             : ""
   Expected (QLatin1String("this is a test\r\n")): "this is a test\r\n"
   Loc: [/root/kderoot/download/git/kpty/autotests/kptyprocesstest.cpp(219)]
PASS   : KPtyProcessTest::test_shared_pty()
PASS   : KPtyProcessTest::test_suspend_pty()
PASS   : KPtyProcessTest::cleanupTestCase()
Totals: 5 passed, 2 failed, 0 skipped, 0 blacklisted, 2158ms

I dig this out up to KPtyDevicePrivate::_k_canRead() method. When
p.pty()->waitForReadyRead(5000) is called, this function return 0 in available
for ::ioctl(q->masterFd(), PTY_BYTES_AVAILABLE, (char *) &available) call.
This, in turn, leads to readBytes = 0 and method returning false.

I haven't yet figured out what to do with this.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list