ValgrindRunner: Employ task tree internally

Change-Id: I32f674d7ea93e5825eba0912c98cc0280802c483
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2023-08-16 16:41:44 +02:00
parent 9335cca249
commit b1304de6cf
4 changed files with 137 additions and 95 deletions

View File

@@ -514,8 +514,7 @@ void ValgrindMemcheckParserTest::testRealValgrind()
runner.setValgrindCommand({"valgrind", {}});
runner.setDebuggee(debuggee);
RunnerDumper dumper(&runner);
runner.start();
runner.waitForFinished();
runner.runBlocking();
}
void ValgrindMemcheckParserTest::testValgrindStartError_data()
@@ -551,8 +550,7 @@ void ValgrindMemcheckParserTest::testValgrindStartError()
runner.setValgrindCommand({FilePath::fromString(valgrindExe), valgrindArgs});
runner.setDebuggee(debuggeeExecutable);
RunnerDumper dumper(&runner);
runner.start();
runner.waitForFinished();
runner.runBlocking();
QVERIFY(dumper.m_errorReceived);
// just finish without deadlock and we are fine
}