Skip to content

Unbreak KPtyProcessTest::test_pty_signals test for FreeBSD

Gleb Popov requested to merge arrowdodger/kpty:test-fix into master

The ioctl(q->masterFd(), PTY_BYTES_AVAILABLE, available) call returns 0 if the process is finished on FreeBSD.

Moving the p.waitForFinished(1000) line to the end of the test fixes it for me. Not sure if this is a correct fix or just a workaround.

@ossi You seem to be knowledgeable in KPty stuff. Can you do a review for this?

Merge request reports