File 0395-asan-Add-info-about-subnode-in-asan_summary.html.patch of Package erlang

From 07586604f25ece6469ac41a296b01b9ab154bf47 Mon Sep 17 00:00:00 2001
From: Sverker Eriksson <sverker@erlang.org>
Date: Wed, 16 Feb 2022 20:17:38 +0100
Subject: [PATCH 2/2] asan: Add info about subnode in asan_summary.html

---
 erts/emulator/asan/asan_logs_to_html | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/erts/emulator/asan/asan_logs_to_html b/erts/emulator/asan/asan_logs_to_html
index f8d0e8cab6..5eb24f9e93 100755
--- a/erts/emulator/asan/asan_logs_to_html
+++ b/erts/emulator/asan/asan_logs_to_html
@@ -262,10 +262,16 @@ log_error(_Out, #logacc{app_err=AppErr, tc_err=TcErr}=LogAcc, Txt0) ->
                           [_Exe, App, _Rest] ->
                               io_format("<h3>Before first test case of ~s</h3>\n",
                                         [App]);
-                          [_Exe, _App, "tc", Num, Mod, Rest] ->
-                              [Func | _] = string:lexemes(Rest, "."),
-                              io_format("<h3>Test case #~s ~s:~s</h3>\n",
-                                        [Num, Mod, Func]);
+                          [_Exe, _App, "tc", Num, Mod, Rest0] ->
+                              [Func | Rest1] = string:lexemes(Rest0, "."),
+                              SubNode = case Rest1 of
+                                            ["subnode" | _] ->
+                                                " (subnode)";
+                                            _ ->
+                                                ""
+                                        end,
+                              io_format("<h3>Test case #~s ~s:~s~s</h3>\n",
+                                        [Num, Mod, Func, SubNode]);
                           _ ->
                               io_format("<h3>Strange log file name '~s'</h3>\n",
                                         [SrcFile])
-- 
2.34.1

openSUSE Build Service is sponsored by