summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestcase.cpp
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-10-20 12:16:49 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-21 01:20:29 +0200
commit98bd270fb766373fce4be9d6f2a98bda50343636 (patch)
tree2149f540803a37650a1cddc0cd82f73c4273ff89 /src/testlib/qtestcase.cpp
parentd766ae045741e28c8934c5a17def28e1f9b3f791 (diff)
Fix misleading comment on test execution order.
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>
Diffstat (limited to 'src/testlib/qtestcase.cpp')
-rw-r--r--src/testlib/qtestcase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp
index a12f6e36d3..50f395a60e 100644
--- a/src/testlib/qtestcase.cpp
+++ b/src/testlib/qtestcase.cpp
@@ -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