From 370983f314e181c6655f7cd5535196e6aec17f9f Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Thu, 1 Dec 2011 17:14:19 +0000 Subject: Ignore expected warning Change-Id: I6e90537461fa4939c724b3031f3b3b5f04343d8e Reviewed-by: Aaron Kennedy --- tests/auto/declarative/qquicktextinput/tst_qquicktextinput.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/auto') diff --git a/tests/auto/declarative/qquicktextinput/tst_qquicktextinput.cpp b/tests/auto/declarative/qquicktextinput/tst_qquicktextinput.cpp index b217f905f1..a6a9add5d5 100644 --- a/tests/auto/declarative/qquicktextinput/tst_qquicktextinput.cpp +++ b/tests/auto/declarative/qquicktextinput/tst_qquicktextinput.cpp @@ -3276,7 +3276,12 @@ void tst_qquicktextinput::QTBUG_19956() void tst_qquicktextinput::QTBUG_19956_regexp() { - QQuickView canvas(QUrl::fromLocalFile(TESTDATA("qtbug-19956regexp.qml"))); + QUrl url = QUrl::fromLocalFile(TESTDATA("qtbug-19956regexp.qml")); + + QString warning = url.toString() + ":11: Unable to assign [undefined] to QRegExp"; + QTest::ignoreMessage(QtWarningMsg, qPrintable(warning)); + + QQuickView canvas(url); canvas.show(); canvas.requestActivateWindow(); QTest::qWaitForWindowShown(&canvas); -- cgit v1.2.3