Remove debug code from QLayout autotest.
authorJason McDonald <jason.mcdonald@nokia.com>
Mon, 31 Oct 2011 07:33:42 +0000 (17:33 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 1 Nov 2011 03:58:44 +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: Id4efb74a2d3646f3554b643762beefba113c3602
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/widgets/kernel/qlayout/tst_qlayout.cpp

index ea25700..b25c632 100644 (file)
@@ -195,15 +195,11 @@ void tst_QLayout::smartMaxSize()
                         Qt::Alignment align = alignments[a];
                         QSize sz = qSmartMaxSize(QSize(sizeHint, 1), QSize(minSize, 1), QSize(maxSize, 1), sizePolicy, align);
                         int width = sz.width();
-#if 0
-                        qDebug() << expectedIndex << sizePolicy.horizontalPolicy() << align << minSize << sizeHint << maxSize << width;
-#else
                         int expectedWidth = expectedWidths[expectedIndex];
                         if (width != expectedWidth) {
                             qDebug() << "error at index" << expectedIndex << ":" << sizePolicy.horizontalPolicy() << align << minSize << sizeHint << maxSize << width;
                             ++regressionCount;
                         }
-#endif
                         ++expectedIndex;
                     }
                 }