Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
0917-kernel-Only-run-large-file-tests-on-64-bit...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0917-kernel-Only-run-large-file-tests-on-64-bit-OSs.patch of Package erlang
From bfa51d4f095ba2a43eb4cca61efea75587d3c2f0 Mon Sep 17 00:00:00 2001 From: Lukas Larsson <lukas@erlang.org> Date: Wed, 16 Feb 2022 17:33:30 +0100 Subject: [PATCH 3/3] kernel: Only run large file tests on 64-bit OSs When running tests in docker we can end up in the cituation that we have more than 4GB of memory available on a 32-bit system so we have to guard against that. --- lib/kernel/test/prim_file_SUITE.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/kernel/test/prim_file_SUITE.erl b/lib/kernel/test/prim_file_SUITE.erl index 6fc1ff2cd7..494bb016f2 100644 --- a/lib/kernel/test/prim_file_SUITE.erl +++ b/lib/kernel/test/prim_file_SUITE.erl @@ -1763,12 +1763,12 @@ list_dir_1(TestDir, Cnt, Sorted0) -> %%% run_large_file_test(Config, Run, Name) -> - case {os:type(),os:version()} of - {{win32,nt},_} -> + case {erlang:system_info(wordsize),os:type(),os:version()} of + {8,{win32,nt},_} -> do_run_large_file_test(Config, Run, Name); - {{unix,sunos},OsVersion} when OsVersion < {5,5,1} -> + {8,{unix,sunos},OsVersion} when OsVersion < {5,5,1} -> {skip,"Only supported on Win32, Unix or SunOS >= 5.5.1"}; - {{unix,_},_} -> + {8,{unix,_},_} -> DiscFree = unix_free(proplists:get_value(priv_dir, Config)), MemFree = free_memory(), io:format("Free disk: ~w KByte~n", [DiscFree]), -- 2.34.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor