summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestcase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/testlib/qtestcase.cpp')
-rw-r--r--src/testlib/qtestcase.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp
index fd47db3f553..9a5c088a6e1 100644
--- a/src/testlib/qtestcase.cpp
+++ b/src/testlib/qtestcase.cpp
@@ -2627,11 +2627,11 @@ void QTest::qCaught(const char *expected, const char *what, const char *file, in
If the exception inherits std::exception, its what() message is logged and
this function returns normally. The caller of this function must then
- execute a \c{return} to exit from the test function.
+ execute a \c{QTEST_FAIL_ACTION} to exit from the test function.
Otherwise, a message saying an unknown exception was caught is logged and
- this function rethrows the exception, skipping the \c{return} that follows
- this function call in the caller.
+ this function rethrows the exception, skipping the \c{QTEST_FAIL_ACTION}
+ that follows this function call in the caller.
*/
void QTest::qCaught(const char *expected, const char *file, int line)
{
@@ -2644,7 +2644,7 @@ void QTest::qCaught(const char *expected, const char *file, int line)
qCaught(expected, nullptr, file, line);
throw;
}
- // caller shall invoke `return` if control reached here
+ // caller shall invoke `QTEST_FAIL_ACTION` if control reached here
}