File 0446-snmp-test-Fixed-printout-in-stop-agent.patch of Package erlang
From a32f6e02e928b57d467f6111fb65d5384598f679 Mon Sep 17 00:00:00 2001
From: Micael Karlberg <bmk@erlang.org>
Date: Fri, 15 Nov 2024 12:59:57 +0100
Subject: [PATCH 6/7] [snmp|test] Fixed printout in stop-agent
---
lib/snmp/test/snmp_agent_test_lib.erl | 2 +-
lib/snmp/test/snmp_test_lib.hrl | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/snmp/test/snmp_agent_test_lib.erl b/lib/snmp/test/snmp_agent_test_lib.erl
index 28d73ff7d3..53b9300208 100644
--- a/lib/snmp/test/snmp_agent_test_lib.erl
+++ b/lib/snmp/test/snmp_agent_test_lib.erl
@@ -1004,7 +1004,7 @@ stop_agent_loop([{Desc, F}|Fs], Config0) ->
stop_agent_loop(Fs, Config)
catch
_:_:_ ->
- {"aborted at " ++ Desc, Config0}
+ {Config0, ?F("aborted at~n ") ++ Desc}
end.
diff --git a/lib/snmp/test/snmp_test_lib.hrl b/lib/snmp/test/snmp_test_lib.hrl
index 4e85b5e28a..33a58c6f7f 100644
--- a/lib/snmp/test/snmp_test_lib.hrl
+++ b/lib/snmp/test/snmp_test_lib.hrl
@@ -129,7 +129,8 @@
-define(P(C), ?LIB:p(?MODULE, C)).
%% Takes a format call (such as io:format) and produces a printable string
--define(F(F, A), ?LIB:f(F, A)).
+-define(F(_FS_, _AS_), ?LIB:f((_FS_), (_AS_))).
+-define(F(_FS_), ?F((_FS_), [])).
-ifdef(snmp_debug).
-define(DBG(F,A), ?IPRINT(F, A)).
--
2.43.0