tst_uic: Update version regexp
The pattern did not match double-digit version numbers like 5.10.0. Adapt it to better match the version number and use QRegularExpression. Change-Id: I2e25b247213cee6853bfeb27871c839135e3970f Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
parent
7190f2fd02
commit
59ad4465b1
@ -34,6 +34,7 @@
|
||||
#include <QtCore/QByteArray>
|
||||
#include <QtCore/QLibraryInfo>
|
||||
#include <QtCore/QTemporaryDir>
|
||||
#include <QtCore/QRegularExpression>
|
||||
#include <QtCore/QStandardPaths>
|
||||
|
||||
class tst_uic : public QObject
|
||||
@ -63,12 +64,12 @@ private:
|
||||
const QString m_command;
|
||||
QString m_baseline;
|
||||
QTemporaryDir m_generated;
|
||||
QRegExp m_versionRegexp;
|
||||
QRegularExpression m_versionRegexp;
|
||||
};
|
||||
|
||||
tst_uic::tst_uic()
|
||||
: m_command(QLibraryInfo::location(QLibraryInfo::BinariesPath) + QLatin1String("/uic"))
|
||||
, m_versionRegexp(QLatin1String("Created by: Qt User Interface Compiler version [.\\d]{5,5}"))
|
||||
, m_versionRegexp(QLatin1String("\\*\\* Created by: Qt User Interface Compiler version \\d{1,2}\\.\\d{1,2}\\.\\d{1,2}"))
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user