diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-04-04 11:51:58 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2016-04-04 11:51:58 +0200 |
commit | 9e66cb39096edf77816f4ce6e97aee0438922208 (patch) | |
tree | 5314b55646ef81416e6d7cdeeae244f3675ff7d0 /lib/kernel/test/prim_file_SUITE.erl | |
parent | 370d89b57c3a5ec1c6c86ab2ebabc129975c5913 (diff) | |
download | otp-9e66cb39096edf77816f4ce6e97aee0438922208.tar.gz otp-9e66cb39096edf77816f4ce6e97aee0438922208.tar.bz2 otp-9e66cb39096edf77816f4ce6e97aee0438922208.zip |
Don't check dates before 1970
Diffstat (limited to 'lib/kernel/test/prim_file_SUITE.erl')
-rw-r--r-- | lib/kernel/test/prim_file_SUITE.erl | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/kernel/test/prim_file_SUITE.erl b/lib/kernel/test/prim_file_SUITE.erl index d950f3cfb4..a3036f011c 100644 --- a/lib/kernel/test/prim_file_SUITE.erl +++ b/lib/kernel/test/prim_file_SUITE.erl @@ -1025,17 +1025,15 @@ file_write_file_info_opts(Config) when is_list(Config) -> %% REM: determine date range dependent on time_t = Uint32 | Sint32 | Sint64 %% Determine time_t on os:type()? - lists:foreach(fun - ({FI, Opts}) -> + lists:foreach(fun ({FI, Opts}) -> ok = ?PRIM_FILE_call(write_file_info, Handle, [Name, FI, Opts]) - end, [ - {#file_info{ mode=8#400, atime = Time, mtime = Time, ctime = Time}, Opts} || + end, [ {#file_info{ mode=8#400, atime = Time, mtime = Time, ctime = Time}, Opts} || Opts <- [[{time, universal}],[{time, local}]], Time <- [ {{1970,1,1},{0,0,0}}, {{1970,1,1},{0,0,1}}, - {{1969,12,31},{23,59,59}}, - {{1908,2,3},{23,59,59}}, + % {{1969,12,31},{23,59,59}}, + % {{1908,2,3},{23,59,59}}, {{2012,2,3},{23,59,59}}, {{2037,2,3},{23,59,59}}, erlang:localtime() |