diff options
author | Lukas Larsson <lukas@erlang.org> | 2022-02-16 17:33:30 +0100 |
---|---|---|
committer | Sverker Eriksson <sverker@erlang.org> | 2022-02-28 19:39:59 +0100 |
commit | bfa51d4f095ba2a43eb4cca61efea75587d3c2f0 (patch) | |
tree | 3661bd7b8caff8f734e7706c590a1f60cba59914 | |
parent | 77c61e86fbd68f951ac6964bcccf676f402254b5 (diff) | |
download | erlang-bfa51d4f095ba2a43eb4cca61efea75587d3c2f0.tar.gz |
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.
-rw-r--r-- | lib/kernel/test/prim_file_SUITE.erl | 8 |
1 files 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]), |