File 7669-snmp-test-More-not-in-time-window-detection-adjustme.patch of Package erlang

From 0f4661153be63be35b258b2893f3d2a919494853 Mon Sep 17 00:00:00 2001
From: Micael Karlberg <bmk@erlang.org>
Date: Mon, 24 Jan 2022 14:01:16 +0100
Subject: [PATCH 09/12] [snmp|test] More not-in-time-window detection
 adjustments

---
 lib/snmp/test/snmp_agent_test_lib.erl | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/snmp/test/snmp_agent_test_lib.erl b/lib/snmp/test/snmp_agent_test_lib.erl
index e82f374a8d..27c4248c49 100644
--- a/lib/snmp/test/snmp_agent_test_lib.erl
+++ b/lib/snmp/test/snmp_agent_test_lib.erl
@@ -1118,6 +1118,9 @@ expect(Mod, Line, Type, Enterp, Generic, Specific, ExpVBs) ->
 expect2(Mod, Line, F) ->
     io_format_expect("for ~w:~w", [Mod, Line]),
     case F() of
+	{error, {securityError, usmStatsNotInTimeWindows}} ->
+	    io_format_expect("(USM) Stats not-in-windows => ", []),
+	    skip({securityError, usmStatsNotInTimeWindows});
 	{error, Reason} ->
 	    io_format_expect("failed at ~w:~w => "
                              "~n      ~p", [Mod, Line, Reason]),
-- 
2.34.1

openSUSE Build Service is sponsored by