aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2011-12-08 14:51:56 +0100
committerBjörn-Egil Dahlberg <[email protected]>2011-12-08 14:51:56 +0100
commit4091bb7785c488f65f686f2f92de1ef420d7c81b (patch)
treebf1ecc8f0a96ef7559c0ea7b8b1e6a92d3b73174 /lib
parent474be24e335b03d64eb389993e110f07fe0d3f74 (diff)
downloadotp-4091bb7785c488f65f686f2f92de1ef420d7c81b.tar.gz
otp-4091bb7785c488f65f686f2f92de1ef420d7c81b.tar.bz2
otp-4091bb7785c488f65f686f2f92de1ef420d7c81b.zip
Remove time_t specific test in prim_file_SUITE
Remove time_t = Sint64 | Uint32 testcase only. The year 2040 does not exist on Sint32.
Diffstat (limited to 'lib')
-rw-r--r--lib/kernel/test/prim_file_SUITE.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/kernel/test/prim_file_SUITE.erl b/lib/kernel/test/prim_file_SUITE.erl
index e6e0974a95..ccf26ee034 100644
--- a/lib/kernel/test/prim_file_SUITE.erl
+++ b/lib/kernel/test/prim_file_SUITE.erl
@@ -1102,6 +1102,8 @@ file_write_file_info_opts(Config) when is_list(Config) ->
Time <- [ 0,1,-1,100,-100,1000,-1000,10000,-10000 ]
]),
+ % REM: determine date range dependent on time_t = Uint32 | Sint32 | Sint64
+ % Determine time_t on os:type()?
lists:foreach(fun
({FI, Opts}) ->
ok = ?PRIM_FILE_call(write_file_info, Handle, [Name, FI, Opts])
@@ -1114,7 +1116,7 @@ file_write_file_info_opts(Config) when is_list(Config) ->
{{1969,12,31},{23,59,59}},
{{1908,2,3},{23,59,59}},
{{2012,2,3},{23,59,59}},
- {{2040,2,3},{23,59,59}},
+ {{2037,2,3},{23,59,59}},
erlang:localtime()
]]),
ok = ?PRIM_FILE:stop(Handle),