Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.0.0
-
None
-
64642a4d9768b767c51c7f92dec94f655ba60195
Description
In qt5, the file qtdoc/doc/src/development/qtestlib.qdoc states:
"If \c
{initTestCase()}fails, no testfunction will be executed. If \c
{init()} fails,
the following testfunction will not be executed, the test will proceed to the next
testfunction."
The first of these statements is true, but the second is false.
If init() returns any result except SkipTestCase, the following test function will be executed – see the function qInvokeTestMethodDataEntry in qtestcase.cpp. To bail out on init() failing, each test function would have to examine the return value of currentTestFailed().
This task must be resolved either by fixing qtestlib to match the documentation, or by amending the docs to describe the current behaviour.