aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2025-12-08 10:55:30 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2025-12-11 04:48:24 +0000
commit13d72a16cad65a6f48621942621632f66a16aacb (patch)
treef09ab6836acfb996cf81c1efc675b20546f6485f
parenteaf949a3fc9b4ed3209d66c82705e0a0239f73d8 (diff)
tst_qmltyperegistrar: Fix metaObjectHash regular expressionv6.11.0-beta1
We've added a version to the hash. Fixes: QTBUG-142529 Change-Id: Idba7608708db938c3cf958e98bb6ea0ea3bd7bdc Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io> (cherry picked from commit fc045b437cf4702fe182b8b91a3b327fa60cca17) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tests/auto/qml/qmltyperegistrar/tst_qmltyperegistrar.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qml/qmltyperegistrar/tst_qmltyperegistrar.cpp b/tests/auto/qml/qmltyperegistrar/tst_qmltyperegistrar.cpp
index dfa98434d0..30dbaac51a 100644
--- a/tests/auto/qml/qmltyperegistrar/tst_qmltyperegistrar.cpp
+++ b/tests/auto/qml/qmltyperegistrar/tst_qmltyperegistrar.cpp
@@ -51,7 +51,8 @@ QByteArray tst_qmltyperegistrar::emptyMetaObjectHashes(const QByteArray &qmltype
{
QString copy = QString::fromUtf8(qmltypes);
const QString base64Symbols = QRegularExpression::escape(QStringLiteral("+/=")) + "a-zA-Z0-9";
- const QRegularExpression re(QStringLiteral(R"(metaObjectHash: "[%1]+")").arg(base64Symbols));
+ const QRegularExpression re(
+ QStringLiteral(R"(metaObjectHash: "[0-9]+\$[%1]+")").arg(base64Symbols));
copy.replace(re, QStringLiteral(R"(metaObjectHash: "")"));
return copy.toUtf8();
}