File 2537-rename-shell_docs-test-to-ct_doctest-module.patch of Package erlang

From 7fa0d98b19e224c693ab23b36a56c5907145c8ac Mon Sep 17 00:00:00 2001
From: Fredrik Frantzen <frazze@erlang.org>
Date: Thu, 12 Mar 2026 21:15:59 +0100
Subject: [PATCH 17/17] rename shell_docs:test to ct_doctest:module

---
 HOWTO/DOCUMENTATION.md            | 2 +-
 lib/stdlib/test/io_ansi_SUITE.erl | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/HOWTO/DOCUMENTATION.md b/HOWTO/DOCUMENTATION.md
index bb8e4b96a1..42671e2f50 100644
--- a/HOWTO/DOCUMENTATION.md
+++ b/HOWTO/DOCUMENTATION.md
@@ -287,7 +287,7 @@ For code examples with several steps and for long examples:
 - Ensure that it is obvious for the reader what belongs to the example.
 - Use a subheading `## Examples`.
 
-All examples should be tested if possible using [`shell_docs:test/2`](../lib/stdlib/src/shell_docs.erl).
+All examples should be tested if possible using [`ct_doctest:module/2`](../lib/common_test/src/ct_doctest.erl).
 See [lists_SUITE:doctests/1](../lib/stdlib/test/lists_SUITE.erl) for an example
 on how to do that.
 
diff --git a/lib/stdlib/test/io_ansi_SUITE.erl b/lib/stdlib/test/io_ansi_SUITE.erl
index ebe7a62eb6..b5d35fdfcd 100644
--- a/lib/stdlib/test/io_ansi_SUITE.erl
+++ b/lib/stdlib/test/io_ansi_SUITE.erl
@@ -257,7 +257,7 @@ doctests(Config) ->
     try
         shell_test_lib:rpc(Term, fun() ->
             group_leader(whereis(user), self()),
-            shell_docs:test(io_ansi, [])
+            ct_doctest:module(io_ansi, [])
         end)
     after
         shell_test_lib:stop_tty(Term)
-- 
2.51.0

openSUSE Build Service is sponsored by