Allow tests to run despite custom message patterns.
authorFrederik Gladhorn <frederik.gladhorn@digia.com>
Tue, 23 Oct 2012 12:48:50 +0000 (14:48 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 23 Oct 2012 13:29:44 +0000 (15:29 +0200)
With QT_MESSAGE_PATTERN some tests would not run without explanation.

Change-Id: I68a9eda08fe56508ffaaef209a1f236621aa932e
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
tests/auto/qml/debugger/shared/debugutil.cpp

index 06aba83..f1700c8 100644 (file)
@@ -183,7 +183,7 @@ void QQmlDebugProcess::processAppOutput()
         const QString line = m_outputBuffer.left(nlIndex);
         m_outputBuffer = m_outputBuffer.right(m_outputBuffer.size() - nlIndex - 1);
 
-        if (line.startsWith("QML Debugger:")) {
+        if (line.contains("QML Debugger:")) {
             if (line.contains("Waiting for connection ")) {
                 m_timer.stop();
                 m_started = true;