File 1153-stdlib-Fix-eval-tc-in-debug-build.patch of Package erlang

From 9ac1cc2e13e7d33afbe4fbfa5c137982addb6c0c Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Wed, 24 Feb 2021 09:12:42 +0100
Subject: [PATCH 1/2] stdlib: Fix eval tc in debug build

When running a debug emulator the keys may not be sorted
so we sort them.
---
 lib/stdlib/test/erl_eval_SUITE.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/stdlib/test/erl_eval_SUITE.erl b/lib/stdlib/test/erl_eval_SUITE.erl
index ac342f3ada..e671b2bf5a 100644
--- a/lib/stdlib/test/erl_eval_SUITE.erl
+++ b/lib/stdlib/test/erl_eval_SUITE.erl
@@ -1780,7 +1780,7 @@ check(F, String, Result, BoundVars, LFH, EFH) ->
         {value, Result, Bs} ->
             %% We just assume that Bs is an orddict...
             Keys = orddict:fetch_keys(Bs),
-            case sort(BoundVars) == Keys of
+            case sort(BoundVars) == sort(Keys) of
                 true -> 
                     ok;
                 false -> 
-- 
2.26.2

openSUSE Build Service is sponsored by