CMakePM: Raise timeout for ctest run

Depending on the size of projects and the underlying toolchain we
may end up with no tests as the timeout for the ctest run was just
too small.

Fixes: QTCREATORBUG-25851
Change-Id: I5617987a9e43b16c02a2c0b4afd598a3ff909299
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2021-06-11 09:59:54 +02:00
parent 7a074608b6
commit 9542ccd14e

View File

@@ -935,7 +935,7 @@ void CMakeBuildSystem::runCTest()
process.setWorkingDirectory(workingDirectory);
process.start(cmd.executable().toString(), cmd.splitArguments(), QIODevice::ReadOnly);
if (!process.waitForStarted(1000) || !process.waitForFinished(1000)) {
if (!process.waitForStarted(1000) || !process.waitForFinished()) {
if (process.state() == QProcess::NotRunning)
return;
process.terminate();