From b72ac8bb33177f6ca117fc0f7727d24de67cbc62 Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Fri, 29 Jul 2011 14:47:00 +0200 Subject: Update to reflect addition of CTH priority addition --- lib/common_test/doc/src/ct_hooks.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/common_test/doc/src/ct_hooks.xml') 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 @@ - Module:init(Id, Opts) -> State + Module:init(Id, Opts) -> {ok, State} | + {ok, State, Priority} Initiates the Common Test Hook Id = reference() | term() Opts = term() State = term() + Priority = integer() @@ -103,6 +105,10 @@ if id/1 is not implemented.

+

Priority 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.

+

For details about when init is called see scope in the User's Guide.

-- cgit v1.2.3