diff options
Diffstat (limited to 'lib/kernel/test/file_SUITE.erl')
-rw-r--r-- | lib/kernel/test/file_SUITE.erl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/kernel/test/file_SUITE.erl b/lib/kernel/test/file_SUITE.erl index 7686aeee7d..1c1b35abc1 100644 --- a/lib/kernel/test/file_SUITE.erl +++ b/lib/kernel/test/file_SUITE.erl @@ -2041,13 +2041,7 @@ allocate_and_assert(Fd, Offset, Length) -> %% Tests that asserts that file:allocate/3 changes file size allocate_file_size(Config) when is_list(Config) -> case os:type() of - {win32, _} -> - {skip, "Windows does not support file:allocate/3"}; - - {unix, linux} -> - {skip, "file:allocate/3 on Linux does not change file size"}; - - _ -> + {unix, darwin} -> PrivDir = proplists:get_value(priv_dir, Config), Allocate = filename:join(PrivDir, atom_to_list(?MODULE)++"_allocate_file"), @@ -2057,7 +2051,13 @@ allocate_file_size(Config) when is_list(Config) -> ok = ?FILE_MODULE:close(Fd), [] = flush(), - ok + ok; + {unix, linux} -> + {skip, "file:allocate/3 on Linux does not change file size"}; + {win32, _} -> + {skip, "Windows does not support file:allocate/3"}; + _ -> + {skip, "Support for allocate/3 is spotty in our test platform at the moment."} end. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |