Avoid QCOMPARE outside test function in QSettings test.
authorJason McDonald <jason.mcdonald@nokia.com>
Tue, 3 Jan 2012 05:16:14 +0000 (15:16 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 4 Jan 2012 05:01:33 +0000 (06:01 +0100)
commit0afe9907149b94d8cc4600f1a2b23b99067d030f
tree5ba6a857b9676310e43cda641bad68c07be7982e
parent20f0196a2cddf6927c34d8e3a93ea7ca074c7a53
Avoid QCOMPARE outside test function in QSettings test.

QCOMPARE and friends should only be called in a test function.  Instead
of calling QCOMPARE elsewhere, keep a count of the number of errors and
QCOMPARE that count with zero in the test function.

Change-Id: I9a264e91169a98c30980fdc04a3e45bfb0ca8063
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/corelib/io/qsettings/tst_qsettings.cpp