File 2301-kernel-test-Tweaked-tcp-buffer-size-check.patch of Package erlang

From 2ac89a429f686a624ee3c4b08348ff931b863b3f Mon Sep 17 00:00:00 2001
From: Micael Karlberg <bmk@erlang.org>
Date: Thu, 10 Apr 2025 15:08:17 +0200
Subject: [PATCH 1/3] [kernel|test] Tweaked (tcp) buffer size check

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

diff --git a/lib/kernel/test/gen_tcp_misc_SUITE.erl b/lib/kernel/test/gen_tcp_misc_SUITE.erl
index 2b99a2d8d0..2ab88c87d5 100644
--- a/lib/kernel/test/gen_tcp_misc_SUITE.erl
+++ b/lib/kernel/test/gen_tcp_misc_SUITE.erl
@@ -9898,14 +9898,14 @@ do_kernel_options(Config, Addr) ->
                  [{buffer, CBSz}, {recbuf, RB2}], % Connect
                  [{buffer, LBSz}, {recbuf, RB3}]  % Accept
                 }
-                  when (RB1 =:= LRBSz) andalso
+                  when (RB1 >= LRBSz) andalso
                        (RB2 >= CRBSz) andalso
                        (RB3 >= LRBSz) -> 
                     ?P("options (buffers) verified:"
-                       "~n   listen:  ~p"
+                       "~n   listen:  ~p (>= ~p)"
                        "~n   connect: ~p (>= ~p)"
                        "~n   accept:  ~p (>= ~p)",
-                       [RB1, RB2, CRBSz, RB3, LRBSz]),
+                       [RB1, LRBSz, RB2, CRBSz, RB3, LRBSz]),
                     (catch ?STOP_NODE(Node)),
                     ok;
                 Actual ->
-- 
2.43.0

openSUSE Build Service is sponsored by