elixir/0001-Use-PID-valid-for-32-bit-systems-followup-to-12741-1.patch
Simon Lees e48940194a Accepting request 1125152 from home:matwey:branches:devel:languages:erlang
- Update to Elixir 1.15.7:
  * Fix build for Erlang 26
  * Changelog available at https://hexdocs.pm/elixir/1.15.7/changelog.html
- Add 0001-Use-PID-valid-for-32-bit-systems-closes-12741.patch:
  * Fix build for 32bit
- Add 0001-Use-PID-valid-for-32-bit-systems-followup-to-12741-1.patch:
  * Fix build for 32bit

OBS-URL: https://build.opensuse.org/request/show/1125152
OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang/elixir?expand=0&rev=88
2023-11-13 06:43:33 +00:00

40 lines
1.4 KiB
Diff

From e00524ba5b0e682488fa99bca4aa89e4e7071aa0 Mon Sep 17 00:00:00 2001
From: Peter Lemenkov <lemenkov@gmail.com>
Date: Fri, 7 Jul 2023 20:47:26 +0200
Subject: [PATCH] Use PID valid for 32-bit systems, followup to #12741 (#12772)
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
---
lib/iex/test/iex/helpers_test.exs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/iex/test/iex/helpers_test.exs b/lib/iex/test/iex/helpers_test.exs
index 31984a390..ed5190e82 100644
--- a/lib/iex/test/iex/helpers_test.exs
+++ b/lib/iex/test/iex/helpers_test.exs
@@ -1364,8 +1364,8 @@ test "reloads Erlang modules" do
describe "pid/1,3" do
test "builds a PID from string" do
- assert inspect(pid("0.32767.3276")) == "#PID<0.32767.3276>"
- assert inspect(pid("0.5.6")) == "#PID<0.5.6>"
+ assert inspect(pid("0.32767.0")) == "#PID<0.32767.0>"
+ assert inspect(pid("0.5.0")) == "#PID<0.5.0>"
assert_raise ArgumentError, fn ->
pid("0.6.-6")
@@ -1381,8 +1381,8 @@ test "builds a PID from atom" do
end
test "builds a PID from integers" do
- assert inspect(pid(0, 32767, 3276)) == "#PID<0.32767.3276>"
- assert inspect(pid(0, 5, 6)) == "#PID<0.5.6>"
+ assert inspect(pid(0, 32767, 0)) == "#PID<0.32767.0>"
+ assert inspect(pid(0, 5, 0)) == "#PID<0.5.0>"
assert_raise FunctionClauseError, fn ->
pid(0, 6, -6)
--
2.35.3