summaryrefslogtreecommitdiffstats
path: root/src/testlib
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2020-01-09 20:30:39 +0100
committerLiang Qi <liang.qi@qt.io>2020-01-09 20:30:39 +0100
commita59c7684897bfbbb7ddcec2f05263fee92ab5056 (patch)
tree50793671569f87bdbfc0e9ff36adbf416971d6cf /src/testlib
parent5507d0f1b04ea6b1d91be9ade30bc31d1830c220 (diff)
parent1c75f59588694557caba69c2fc173dd8f1d7f514 (diff)
Merge remote-tracking branch 'origin/5.14' into 5.15
Conflicts: src/corelib/kernel/qobject.cpp Change-Id: I4780b25665672692b086ee92092e506c814642f2
Diffstat (limited to 'src/testlib')
-rw-r--r--src/testlib/doc/src/qttest-best-practices.qdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/doc/src/qttest-best-practices.qdoc b/src/testlib/doc/src/qttest-best-practices.qdoc
index 952fd3259d..7143e644fd 100644
--- a/src/testlib/doc/src/qttest-best-practices.qdoc
+++ b/src/testlib/doc/src/qttest-best-practices.qdoc
@@ -270,7 +270,7 @@
When side-effects are unavoidable, ensure that the prior state is restored
at the end of the test function, even if the test fails. This commonly
requires use of an RAII (resource acquisition is initialization) class
- that restores state when the function returns, or a \l cleanup() method.
+ that restores state when the function returns, or a \c cleanup() method.
Do not simply put the restoration code at the end of the test. If part of
the test fails, such code will be skipped and the prior state will not be
restored.