File 4121-Anchor-only-left-subexpression.patch of Package erlang

From 3c3fb9a6e4cb8c10950e53763bf27b53da77cbec Mon Sep 17 00:00:00 2001
From: Raimo Niskanen <raimo@erlang.org>
Date: Mon, 13 Feb 2023 15:23:16 +0100
Subject: [PATCH] Anchor only left subexpression

---
 lib/kernel/test/logger_simple_h_SUITE.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/kernel/test/logger_simple_h_SUITE.erl b/lib/kernel/test/logger_simple_h_SUITE.erl
index 9bc910a04b..f431574767 100644
--- a/lib/kernel/test/logger_simple_h_SUITE.erl
+++ b/lib/kernel/test/logger_simple_h_SUITE.erl
@@ -1,7 +1,7 @@
 %%
 %% %CopyrightBegin%
 %%
-%% Copyright Ericsson AB 2018-2022. All Rights Reserved.
+%% Copyright Ericsson AB 2018-2023. All Rights Reserved.
 %%
 %% Licensed under the Apache License, Version 2.0 (the "License");
 %% you may not use this file except in compliance with the License.
@@ -108,7 +108,7 @@ start_crash(_Config) ->
     Output = os:cmd(ct:get_progname() ++ " -user baduser"),
     ErrorOutput = re:replace(unicode:characters_to_binary(Output),"\r\n","\n",[global]),
     ct:log("~ts",[ErrorOutput]),
-    {match,[_]} = re:run(ErrorOutput,"^(=SUPERVISOR REPORT====| supervisor_report *\n)",[global]),
+    {match,[_]} = re:run(ErrorOutput,"(^=SUPERVISOR REPORT====| supervisor_report *\n)",[global]),
     {match,[_, _]} = re:run(ErrorOutput," crash_report *\n",[global]),
     {match,[_]} = re:run(ErrorOutput," std_info *\n",[global]),
     {match,[[CD]]} = re:run(ErrorOutput,"\nCrash dump is being written to: (.*)\\.\\.\\.done",
-- 
2.35.3

openSUSE Build Service is sponsored by