Fix valgrind support in QTestLib's benchmarking
Valgrind has reached double-digit versions, so the regexp for detecting the version from the string needs to be widened accordingly. Change-Id: Ib95994f96d6b1e94a34bedd1b98525076851984b Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
parent
970390e114
commit
fe70d005d5
@ -66,7 +66,7 @@ bool QBenchmarkValgrindUtils::haveValgrind()
|
||||
if (!process.waitForFinished(-1))
|
||||
return false;
|
||||
const QByteArray out = process.readAllStandardOutput();
|
||||
QRegExp rx(QLatin1String("^valgrind-([0-9]).([0-9]).[0-9]"));
|
||||
QRegExp rx(QLatin1String("^valgrind-([0-9]+).([0-9]+).[0-9]+"));
|
||||
if (rx.indexIn(QLatin1String(out.data())) == -1)
|
||||
return false;
|
||||
bool ok;
|
||||
|
Loading…
Reference in New Issue
Block a user