File 0976-snmp-test-Change-tmp-connection-to-standard_io-for-p.patch of Package erlang
From 6693915a19670a636acf117b4542295862f41ce5 Mon Sep 17 00:00:00 2001
From: Micael Karlberg <bmk@erlang.org>
Date: Mon, 23 Jun 2025 10:34:08 +0200
Subject: [PATCH 6/7] [snmp|test] Change (tmp) connection to standard_io for
peer start
---
lib/snmp/test/snmp_test_lib.erl | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/lib/snmp/test/snmp_test_lib.erl b/lib/snmp/test/snmp_test_lib.erl
index 8120b9324d..b052e33d28 100644
--- a/lib/snmp/test/snmp_test_lib.erl
+++ b/lib/snmp/test/snmp_test_lib.erl
@@ -3164,13 +3164,18 @@ trap_exit(Flag) ->
%% Node utility functions
%%
+-define(START_OPTIONS(SO), (SO)#{connection => standard_io}).
+%% -define(START_OPTIONS(SO), SO).
+
start_node(Name, Unlink) ->
Args = ["-s", "snmp_test_sys_monitor", "start", "-s", "global", "sync"],
%% Note that the 'verbose' option may not exist...
%% If it does not exist, this (verbose => true) "should" do nothing...
- case ?CT_PEER(#{name => Name,
- args => Args,
- verbose => true}) of
+ BaseStartOptions = #{name => Name,
+ args => Args,
+ verbose => true},
+ StartOptions = ?START_OPTIONS(BaseStartOptions),
+ case ?CT_PEER(StartOptions) of
{ok, Peer, Node} ->
%% Must unlink, otherwise peer will exit before test case
maybe_unlink(Unlink, Peer),
--
2.43.0