aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorEirik Aavitsland <eirik.aavitsland@qt.io>2019-06-03 10:01:26 +0200
committerEirik Aavitsland <eirik.aavitsland@qt.io>2019-06-03 11:59:20 +0200
commitfca76305cb2bd36be5229be59d37af45238916a1 (patch)
treeeae35538b4c858ac9cadb325a6319326447c255a /tests/auto
parent56b0d420703e24523a6a06f75590f0480397f4d6 (diff)
Fix QQuickPathView autotest: update expected warning messages
The wording of the warnings were changed in qtbase. Fixes: QTBUG-76152 Change-Id: Iae0dfbcbb699b8abff92b5923b0a5627591043c8 Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/quick/qquickpathview/tst_qquickpathview.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/quick/qquickpathview/tst_qquickpathview.cpp b/tests/auto/quick/qquickpathview/tst_qquickpathview.cpp
index 7491df5087..355800359c 100644
--- a/tests/auto/quick/qquickpathview/tst_qquickpathview.cpp
+++ b/tests/auto/quick/qquickpathview/tst_qquickpathview.cpp
@@ -1490,11 +1490,11 @@ void tst_QQuickPathView::undefinedPath()
// QPainterPath warnings are only received if QT_NO_DEBUG is not defined
if (QLibraryInfo::isDebugBuild()) {
- QString warning1("QPainterPath::moveTo: Adding point where x or y is NaN or Inf, ignoring call");
- QTest::ignoreMessage(QtWarningMsg,qPrintable(warning1));
+ QRegularExpression warning1("^QPainterPath::moveTo:.*ignoring call$");
+ QTest::ignoreMessage(QtWarningMsg, warning1);
- QString warning2("QPainterPath::lineTo: Adding point where x or y is NaN or Inf, ignoring call");
- QTest::ignoreMessage(QtWarningMsg,qPrintable(warning2));
+ QRegularExpression warning2("^QPainterPath::lineTo:.*ignoring call$");
+ QTest::ignoreMessage(QtWarningMsg, warning2);
}
QQmlComponent c(&engine, testFileUrl("undefinedpath.qml"));