Do not swallow fatal messages in qt/DumpRenderTree
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Oct 2012 23:33:55 +0000 (23:33 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Oct 2012 23:33:55 +0000 (23:33 +0000)
https://bugs.webkit.org/show_bug.cgi?id=98211

Patch by Peter Rybin <peter.rybin@gmail.com> on 2012-10-08
Reviewed by Eric Seidel.

Fix condition in message type filtering.

* DumpRenderTree/qt/DumpRenderTreeMain.cpp:
(messageHandler):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@130703 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/DumpRenderTree/qt/DumpRenderTreeMain.cpp

index ce31f8b..f190d47 100644 (file)
@@ -1,3 +1,15 @@
+2012-10-08  Peter Rybin  <peter.rybin@gmail.com>
+
+        Do not swallow fatal messages in qt/DumpRenderTree
+        https://bugs.webkit.org/show_bug.cgi?id=98211
+
+        Reviewed by Eric Seidel.
+
+        Fix condition in message type filtering.
+
+        * DumpRenderTree/qt/DumpRenderTreeMain.cpp:
+        (messageHandler):
+
 2012-10-08  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
 
         Unreviewed. Moving myself from Committer to Reviewer list.
index 1baae7c..2603601 100644 (file)
@@ -59,7 +59,7 @@
 
 void messageHandler(QtMsgType type, const QMessageLogContext&, const QString &message)
 {
-    if (type == QtCriticalMsg) {
+    if (type == QtCriticalMsg || type == QtFatalMsg) {
         fprintf(stderr, "%s\n", qPrintable(message));
         return;
     }