Pexpect was failing too often, even when starting a new process. Now the test is using Qt and C++. Fix #772