Remove debug code from QGridLayout autotest
authorJason McDonald <jason.mcdonald@nokia.com>
Mon, 31 Oct 2011 07:32:21 +0000 (17:32 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 1 Nov 2011 03:58:36 +0000 (04:58 +0100)
Any test diagnostics that are useful should be part of the regular test
output, as the CI system cannot switch on commented-out code when there
is a test failure.

Change-Id: Ifd2bbd17677e16ddb0f1846287d722cdae76d984
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp

index 11f0cfc..4f0630e 100644 (file)
@@ -1588,10 +1588,6 @@ void tst_QGridLayout::spacerWithSpacing()
                 populate(&layout, 1, j);
                 populate(&layout, 2, k);
                 QCOMPARE(window.sizeHint().height(), expectedHeight[ii]);
-#if 0
-                const char T[] = "ws-";
-                qWarning("%c%c%c: %.3d", i[T], j[T], k[T], window.sizeHint().height());
-#endif
                 ++ii;
             }
         }