summaryrefslogtreecommitdiff
path: root/dev-lang/elixir/files/elixir-1.11.4-fix-elixir-test.patch
blob: 6b4dd0c3939b5def6aa6decd2adf2bc5953f2ed9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 3e88b1f336f843378790802bd486f6793b7ef872 Mon Sep 17 00:00:00 2001
From: Jan Smutny <js@excello.cz>
Date: Thu, 14 Oct 2021 16:14:55 +0200
Subject: [PATCH] Fix elixir test assertion for erlang >=OTP-24.1

---
 lib/elixir/test/elixir/exception_test.exs | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/lib/elixir/test/elixir/exception_test.exs b/lib/elixir/test/elixir/exception_test.exs
index df9d46bbc..ae08d5185 100644
--- a/lib/elixir/test/elixir/exception_test.exs
+++ b/lib/elixir/test/elixir/exception_test.exs
@@ -446,11 +446,12 @@ test "annotates undefined function error with suggestions" do
                    * min/1
              """
 
-      assert blame_message(:erlang, & &1.gt_cookie()) == """
-             function :erlang.gt_cookie/0 is undefined or private. Did you mean one of:
+      assert blame_message(:erlang, & &1.hal()) == """
+             function :erlang.hal/0 is undefined or private. Did you mean one of:
 
-                   * get_cookie/0
-                   * set_cookie/2
+                   * halt/0
+                   * halt/1
+                   * halt/2
              """
     end
 
-- 
2.31.1