qt5base-lts/tests/auto/testlib
Jason McDonald 64642a4d97 testlib: Skip test function if init() fails.
Prior to this commit, the following statement in the qtestlib
documentation was untrue: "If init() fails, the following testfunction
will not be executed, the test will proceed to the next testfunction."
If init() called QSKIP, the test function would be skipped, but if
init() reported a failure, the test function would still be executed
(even though doing so could be unsafe).

This commit makes testlib skip a test function if init() reports a
failure and enhances the selftests to cover skips and fails in both
init() and cleanup().

Task-number: QTBUG-20371
Change-Id: Id1cc8464ae0b8c257ae1b74dbe9189a501f5366b
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
2012-02-17 05:24:46 +01:00
..
qsignalspy Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
selftests testlib: Skip test function if init() fails. 2012-02-17 05:24:46 +01:00
testlib.pro Moved autotests in category 'testlib' into new directory structure 2011-09-12 08:36:15 +02:00