Fix FBTFS
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
This commit is contained in:
parent
301cff587d
commit
b05e028581
@ -0,0 +1,21 @@
|
||||
From: =?UTF-8?q?Jos=C3=A9=20Valim?= <jose.valim@dashbit.co>
|
||||
Date: Sun, 2 Jul 2023 10:28:58 +0200
|
||||
Subject: [PATCH] Use PID valid for 32-bit systems, closes #12741
|
||||
|
||||
|
||||
diff --git a/lib/logger/test/logger/formatter_test.exs b/lib/logger/test/logger/formatter_test.exs
|
||||
index 82a2ac6a9..2ea4ca08b 100644
|
||||
--- a/lib/logger/test/logger/formatter_test.exs
|
||||
+++ b/lib/logger/test/logger/formatter_test.exs
|
||||
@@ -116,9 +116,9 @@ test "format with format string" do
|
||||
format = format(compiled, :error, nil, nil, meta: :data)
|
||||
assert IO.chardata_to_string(format) == "meta=data "
|
||||
|
||||
- pid = :erlang.list_to_pid(~c"<0.123.4>")
|
||||
+ pid = :erlang.list_to_pid(~c"<0.123.0>")
|
||||
format = format(compiled, :error, nil, nil, meta: :data, pid: pid)
|
||||
- assert IO.chardata_to_string(format) == "meta=data pid=<0.123.4> "
|
||||
+ assert IO.chardata_to_string(format) == "meta=data pid=<0.123.0> "
|
||||
|
||||
# Hack to get the same predictable reference for every test run.
|
||||
ref =
|
@ -11,6 +11,7 @@ URL: https://elixir-lang.org/
|
||||
VCS: scm:git:https://github.com/%{upstream}/%{realname}.git
|
||||
Source0: https://github.com/%{upstream}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
Source1: https://github.com/%{upstream}/%{name}/releases/download/v%{version}/Docs.zip#/%{name}-%{version}-doc.zip
|
||||
Patch1: elixir-0001-Use-PID-valid-for-32-bit-systems-closes-12741.patch
|
||||
# See https://bugzilla.redhat.com/1470583
|
||||
#BuildArch: noarch
|
||||
BuildRequires: erlang-compiler
|
||||
|
Loading…
Reference in New Issue
Block a user