File 0789-ct-add-reference-to-hook-execution-order-in-manual.patch of Package erlang
From 5762a091de848e35b0e4bbbbfe6b55a2242318f9 Mon Sep 17 00:00:00 2001
From: Jakub Witczak <kuba@erlang.org>
Date: Fri, 30 Jun 2023 09:24:36 +0200
Subject: [PATCH] ct: add reference to hook execution order in manual
---
lib/common_test/doc/src/ct_hooks.xml | 3 +++
lib/common_test/doc/src/ct_hooks_chapter.xml | 1 +
2 files changed, 4 insertions(+)
diff --git a/lib/common_test/doc/src/ct_hooks.xml b/lib/common_test/doc/src/ct_hooks.xml
index 666ed70c69..84d0fdf7df 100644
--- a/lib/common_test/doc/src/ct_hooks.xml
+++ b/lib/common_test/doc/src/ct_hooks.xml
@@ -102,6 +102,9 @@
<p><c>Priority</c> is the relative priority of this hook. Hooks with a
lower priority are executed first. If no priority is specified, it
is set to <c>0</c>.</p>
+ <p>For details about hook execution order, see section
+ <seeguide marker="ct_hooks_chapter#cth_execution_order">CTH Execution Order</seeguide>
+ in the User's Guide.</p>
<p>For details about when <c>init</c> is called, see section
<seeguide marker="ct_hooks_chapter#scope">CTH Scope</seeguide>
diff --git a/lib/common_test/doc/src/ct_hooks_chapter.xml b/lib/common_test/doc/src/ct_hooks_chapter.xml
index 66758e7e4d..840bd58cc4 100644
--- a/lib/common_test/doc/src/ct_hooks_chapter.xml
+++ b/lib/common_test/doc/src/ct_hooks_chapter.xml
@@ -116,6 +116,7 @@
</section>
<section>
+ <marker id="cth_execution_order"/>
<title>CTH Execution Order</title>
<p>By default, each CTH installed is executed in the order that
they are installed for init calls, and then reversed for end calls.
--
2.35.3