File 0337-stdlib-Fix-testcase-after-9595-changes-how-adding-a-.patch of Package erlang

From 2705f42f6c5939fa7fb3e5666bc94ec58bbc8c05 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Backstr=C3=B6m?= <lukas@erlang.org>
Date: Wed, 9 Apr 2025 15:13:58 +0200
Subject: [PATCH] stdlib: Fix testcase after #9595 changes how adding a default
 handler works

---
 lib/stdlib/test/io_proto_SUITE.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/stdlib/test/io_proto_SUITE.erl b/lib/stdlib/test/io_proto_SUITE.erl
index bc5f95324e..57ba399da6 100644
--- a/lib/stdlib/test/io_proto_SUITE.erl
+++ b/lib/stdlib/test/io_proto_SUITE.erl
@@ -1525,6 +1525,7 @@ logging_gl(Config) when is_list(Config) ->
                                  end),
                       register(?MODULE, Device),
                       ok = logger:add_handler(default, logger_std_h, #{ filter_default => stop, config => #{ type => {device, Device} }}),
+                      logger:set_primary_config(level, all),
                       ok = io:setopts(user, [{log,output}])
               end},
        {putline, "io:format(user,\"abc\n\",[])."},
@@ -1556,7 +1557,6 @@ logging_gl(Config) when is_list(Config) ->
       ["-pz",filename:dirname(code:which(?MODULE)),
        "-oldshell",
        "-connect_all","false",
-       "-kernel","logger_level","all",
        "-kernel","logger","[{handler, default, undefined}]",
        "-kernel","shell_history","disabled",
        "-kernel","prevent_overlapping_partitions","false"]),
-- 
2.43.0

openSUSE Build Service is sponsored by