File 0464-ct-Fix-surefire-without-debug_info.patch of Package erlang
From 3b5ae32508f3e271808b1d766e37797150b641f7 Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Thu, 18 Aug 2022 13:07:33 +0200
Subject: [PATCH] ct: Fix surefire without debug_info
---
lib/common_test/src/cth_surefire.erl | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/common_test/src/cth_surefire.erl b/lib/common_test/src/cth_surefire.erl
index 50858c4e64..578bdd6163 100644
--- a/lib/common_test/src/cth_surefire.erl
+++ b/lib/common_test/src/cth_surefire.erl
@@ -131,7 +131,11 @@ pre_init_per_suite(Suite,Config,#state{ test_cases = [] } = State) ->
{debug_info_v1,
erl_abstract_code,
{Abstr,_Opts}}}]}} ->
- Abstr;
+ if Abstr =:= none ->
+ undefined;
+ true ->
+ Abstr
+ end;
_ ->
undefined
end,
--
2.35.3