File 0603-fixup-CT-Add-source-filename-in-error-output-when-po.patch of Package erlang

From 785ff026bab01215a2a502b28f2babc7da76d691 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= <essen@ninenines.eu>
Date: Wed, 14 Jan 2026 12:10:46 +0100
Subject: [PATCH 3/4] fixup! CT: Add source filename in error output when
 possible

---
 lib/common_test/test/ct_error_SUITE.erl | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/common_test/test/ct_error_SUITE.erl b/lib/common_test/test/ct_error_SUITE.erl
index 2e2394d8f6..bd4d4dcd93 100644
--- a/lib/common_test/test/ct_error_SUITE.erl
+++ b/lib/common_test/test/ct_error_SUITE.erl
@@ -164,8 +164,9 @@ no_debug_info(Config) when is_list(Config) ->
 
     TestDir = filename:join(DataDir, "error/test/"),
     ModFile = filename:join(TestDir, "misc_error_1_SUITE.erl"),
-    ct:pal("Compiling ~p: ~p",
-	   [ModFile,compile:file(ModFile,[{outdir,TestDir},deterministic])]),
+    Result = compile:file(ModFile,[{outdir,TestDir},deterministic]),
+    ct:log("Compiling ~p: ~p", [ModFile,Result]),
+    ok = element(1,Result), %% Ensure compile succeeded.
 
     try
     Join = fun(D, S) -> filename:join(D, "error/test/"++S) end,
@@ -182,7 +183,7 @@ no_debug_info(Config) when is_list(Config) ->
     TestEvents = events_to_check(misc_errors),
     ok = ct_test_support:verify_events(TestEvents, Events, Config)
     after
-        ct:pal("Removing ~p", [ModFile]),
+        ct:log("Removing ~p", [ModFile]),
         code:delete(misc_error_1_SUITE),
         file:delete(filename:join(TestDir, "misc_error_1_SUITE.beam"))
     end.
-- 
2.51.0

openSUSE Build Service is sponsored by