Don't call QSKIP/QVERIFY outside of test functions.
authorJason McDonald <jason.mcdonald@nokia.com>
Mon, 24 Oct 2011 05:55:41 +0000 (15:55 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 25 Oct 2011 01:39:23 +0000 (03:39 +0200)
commit39560b85d5b2765c466d50e89101bd68c04ac590
tree4e2236b4672018dcfe19a7a46235d078ae915f5d
parent87514cb291c693fde10f22727e66f7999a9eb6b7
Don't call QSKIP/QVERIFY outside of test functions.

These macros should only be called inside a test function, otherwise
they cannot abort the test function correctly.  Solve this by making the
helper function return a boolean result (and output a warning on
failure to help with debugging) and verify the return value in each test
function that calls the helper.

Change-Id: I599673fda49051baf80a8c94b5d85a4d8c2cb406
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/widgets/styles/qstyle/tst_qstyle.cpp