Fix misleading comment on test execution order.
authorJason McDonald <jason.mcdonald@nokia.com>
Thu, 20 Oct 2011 02:16:49 +0000 (12:16 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 20 Oct 2011 23:20:29 +0000 (01:20 +0200)
When executing a data-driven test, testlib executes the _data function
once, then repeatedly executes init(), then the test function, then
cleanup() for each row of test data.

Change-Id: Icfa1dd19a52fb1debbc92b7cbe13d85bfb0418c7
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
src/testlib/qtestcase.cpp

index a12f6e3..50f395a 100644 (file)
@@ -1427,7 +1427,7 @@ static void qInvokeTestMethodDataEntry(char *slot)
 /*!
     \internal
 
-    Call init(), slot_data(), slot(), slot(), slot()..., cleanup()
+    Call slot_data(), init(), slot(), cleanup(), init(), slot(), cleanup(), ...
     If data is set then it is the only test that is performed
 
     If the function was successfully called, true is returned, otherwise