File 6682-tools-Fix-hprof-sos-testcase.patch of Package erlang

From 852ac4c18e09b9d3a09b0333048610887cc2fce6 Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Mon, 11 Sep 2023 13:58:02 +0200
Subject: [PATCH 2/2] tools: Fix hprof sos testcase

The size of a fun has schrunk since the testcase was written :)
---
 lib/tools/test/hprof_SUITE.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/tools/test/hprof_SUITE.erl b/lib/tools/test/hprof_SUITE.erl
index 80c40eed1c..674d8a6cc3 100644
--- a/lib/tools/test/hprof_SUITE.erl
+++ b/lib/tools/test/hprof_SUITE.erl
@@ -135,7 +135,7 @@ set_on_spawn(Config) when is_list(Config) ->
     ?assertMatch({?MODULE, {_, 0}, 1, 9, 9, _}, lists:keyfind(?MODULE, 1, TotalProfile)),
     %% MFA takes 6 more words. This test should be improved to depend less on the internal
     %%  implementation.
-    ?assertMatch({?MODULE, {seq, 1}, 1, 15, 15, _}, lists:keyfind(?MODULE, 1, TotalProfileMFA)).
+    ?assertMatch({?MODULE, {seq, 1}, 1, 13, 13, _}, lists:keyfind(?MODULE, 1, TotalProfileMFA)).
 
 seq(Max) ->
     {Pid, MRef} = spawn_monitor(fun () -> lists:seq(1, Max) end),
-- 
2.35.3

openSUSE Build Service is sponsored by