aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/doc/src/ct_hooks.xml
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-07-29 14:47:00 +0200
committerLukas Larsson <[email protected]>2011-08-31 10:51:35 +0200
commitb72ac8bb33177f6ca117fc0f7727d24de67cbc62 (patch)
tree059321335f4725f53cbbf81933d315a9f7f4ef27 /lib/common_test/doc/src/ct_hooks.xml
parent850f0268000dfb3e062689c9b5820c7d49feb2a2 (diff)
downloadotp-b72ac8bb33177f6ca117fc0f7727d24de67cbc62.tar.gz
otp-b72ac8bb33177f6ca117fc0f7727d24de67cbc62.tar.bz2
otp-b72ac8bb33177f6ca117fc0f7727d24de67cbc62.zip
Update to reflect addition of CTH priority addition
Diffstat (limited to 'lib/common_test/doc/src/ct_hooks.xml')
-rw-r--r--lib/common_test/doc/src/ct_hooks.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/common_test/doc/src/ct_hooks.xml b/lib/common_test/doc/src/ct_hooks.xml
index 7d5c9f4750..0ece3199bb 100644
--- a/lib/common_test/doc/src/ct_hooks.xml
+++ b/lib/common_test/doc/src/ct_hooks.xml
@@ -81,12 +81,14 @@
<funcs>
<func>
- <name>Module:init(Id, Opts) -&gt; State</name>
+ <name>Module:init(Id, Opts) -&gt; {ok, State} |
+ {ok, State, Priority}</name>
<fsummary>Initiates the Common Test Hook</fsummary>
<type>
<v>Id = reference() | term()</v>
<v>Opts = term()</v>
<v>State = term()</v>
+ <v>Priority = integer()</v>
</type>
<desc>
@@ -103,6 +105,10 @@
if <seealso marker="#Module:id-1">id/1</seealso> is not implemented.
</p>
+ <p><c>Priority</c> is the relative priority of this hook. Hooks with a
+ lower priority will be executed first. If no priority is given,
+ it will be set to 0. </p>
+
<p>For details about when init is called see
<seealso marker="ct_hooks_chapter#scope">scope</seealso>
in the User's Guide.</p>