Avoid using internal testlib API in QDbusConnection autotest.
authorJason McDonald <jason.mcdonald@nokia.com>
Mon, 5 Mar 2012 02:10:32 +0000 (12:10 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 5 Mar 2012 02:44:01 +0000 (03:44 +0100)
commitd423fd0975569928faeafad28702750407e889ee
tree39b8f23a472df0df36ba1e27d970d720f362abcb
parent8db8a34f07a2f8cbd06dc0b593886a13d52ae4b1
Avoid using internal testlib API in QDbusConnection autotest.

QCOMPARE should only be used in a test function because it makes the
test function return if the compare fails.  The test wants to compare
without returning on failure because the compare is inside a helper
function called by many test functions, so the test was calling
testlib's internal QTest::compare_helper() functions instead of
QCOMPARE.

This commit makes this code slightly less objectionable by calling the
public QTest::qCompare() instead.

Change-Id: Ida17a641e89f8a297d6a036449f44b33aa266368
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
tests/auto/dbus/qdbusconnection/tst_qdbusconnection.cpp