File 0863-megaco-test-Executor-printout-tweaking.patch of Package erlang

From 9ff433b97661815c66c16d2f6801c567fe361ea2 Mon Sep 17 00:00:00 2001
From: Micael Karlberg <bmk@erlang.org>
Date: Thu, 20 Jan 2022 17:25:54 +0100
Subject: [PATCH 3/6] [megaco|test] Executor printout tweaking

---
 lib/megaco/test/megaco_test_lib.erl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/megaco/test/megaco_test_lib.erl b/lib/megaco/test/megaco_test_lib.erl
index 3fca55f68b..ccd3a1c0d6 100644
--- a/lib/megaco/test/megaco_test_lib.erl
+++ b/lib/megaco/test/megaco_test_lib.erl
@@ -2106,7 +2106,7 @@ executor(Fun, Timeout)
     {Pid, MRef} = erlang:spawn_monitor(Fun),
     receive
         {'DOWN', MRef, process, Pid, Info} ->
-            p("executor process terminated with"
+            p("executor process terminated (normal) with"
               "~n      ~p", [Info]),
             Info;
         {'EXIT', TCPid, {timetrap_timeout = R, TCTimeout, TCSTack}} ->
@@ -2117,7 +2117,7 @@ executor(Fun, Timeout)
             %% the process is hanging...
             receive
                 {'DOWN', MRef, process, Pid, Info} ->
-                    p("executor process terminated with"
+                    p("executor process terminated (forced) with"
                       "~n      ~p", [Info]),
                     ok
             after 1000 -> % Give it a second...
@@ -2125,7 +2125,7 @@ executor(Fun, Timeout)
             end,
             {error, R}
     after Timeout ->
-            p("received timeout - kill executor process"),
+            p("executor process termination timeout - kill executor process"),
             exit(kill, Pid),
             {error, executor_timeout}
     end.
-- 
2.31.1

openSUSE Build Service is sponsored by