File 0857-ssh-skip-read_6GB-on-aarch64.patch of Package erlang

From 76aafebe0787fdad383853f3d4a309ffabc21bfb Mon Sep 17 00:00:00 2001
From: Jakub Witczak <kuba@erlang.org>
Date: Mon, 3 Feb 2025 08:37:53 +0100
Subject: [PATCH 2/2] ssh: skip read_6GB on aarch64

---
 lib/ssh/test/ssh_sftp_SUITE.erl | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/lib/ssh/test/ssh_sftp_SUITE.erl b/lib/ssh/test/ssh_sftp_SUITE.erl
index 23c7a25819..29354cc577 100644
--- a/lib/ssh/test/ssh_sftp_SUITE.erl
+++ b/lib/ssh/test/ssh_sftp_SUITE.erl
@@ -279,9 +279,11 @@ init_per_testcase(read_6GB, Config) ->
         Result = {skip, _} ->
             Result;
         _ ->
-            case os:type() of
-                {win32, _} ->
-                    {skip, "/dev/zero not available on Windws"};
+            case {os:type(), erlang:system_info(system_architecture)} of
+                {{win32, _}, _} ->
+                    {skip, "/dev/zero not available on Windows"};
+                {_, "aarch64"} ->
+                    {skip, "machine too slow for test"};
                 _ ->
                     init_per_testcase(read_6GB_prepare_openssh_server, Config)
             end
-- 
2.43.0

openSUSE Build Service is sponsored by