Reduce usage of Q_ASSERT in autotests.
authorRohan McGovern <rohan.mcgovern@nokia.com>
Wed, 18 May 2011 00:44:47 +0000 (10:44 +1000)
committerRohan McGovern <rohan.mcgovern@nokia.com>
Wed, 18 May 2011 00:57:56 +0000 (10:57 +1000)
commit6e50394c4eac9b3e91f6df7e944181cf7f54b0fe
tree5d59d83c15f75dacad3036065603e0dd0a8e7727
parentb8af05d3e2e7914c4edac5ae1e61f55ab76100bc
Reduce usage of Q_ASSERT in autotests.

Using Q_ASSERT does nothing in release-mode builds, and in debug builds
it causes tests to terminate prematurely.  It is much better to use
QVERIFY or QCOMPARE.

Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit 3475168550c1a804f04f2a4edfeb30c04cd36551)

Change-Id: Ic39972b685ca35a9a71d9c8d03e8dae31481fb19
22 files changed:
tests/auto/modeltest/modeltest.cpp
tests/auto/qbuffer/tst_qbuffer.cpp
tests/auto/qchar/tst_qchar.cpp
tests/auto/qcompleter/tst_qcompleter.cpp
tests/auto/qdatetimeedit/tst_qdatetimeedit.cpp
tests/auto/qdbusthreading/tst_qdbusthreading.cpp
tests/auto/qdirmodel/tst_qdirmodel.cpp
tests/auto/qfiledialog2/tst_qfiledialog2.cpp
tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp
tests/auto/qinputdialog/tst_qinputdialog.cpp
tests/auto/qlocale/tst_qlocale.cpp
tests/auto/qmessagebox/tst_qmessagebox.cpp
tests/auto/qpixmap/tst_qpixmap.cpp
tests/auto/qprocess/tst_qprocess.cpp
tests/auto/qsharedpointer/tst_qsharedpointer.cpp
tests/auto/qsplitter/tst_qsplitter.cpp
tests/auto/qsqldatabase/tst_qsqldatabase.cpp
tests/auto/qstring/tst_qstring.cpp
tests/auto/qtextboundaryfinder/tst_qtextboundaryfinder.cpp
tests/auto/qtextcodec/tst_qtextcodec.cpp
tests/auto/qwidget/tst_qwidget.cpp