From 98bd270fb766373fce4be9d6f2a98bda50343636 Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Thu, 20 Oct 2011 12:16:49 +1000 Subject: 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 --- src/testlib/qtestcase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3