mirror of
https://github.com/lua/lua.git
synced 2026-09-20 01:04:22 +00:00
'mktime' can return -1
This commit is contained in:
@@ -854,6 +854,13 @@ local function checkDateTable (t)
|
||||
_G.D = nil
|
||||
end
|
||||
|
||||
|
||||
do -- testing mktime returning -1
|
||||
local t = os.date("*t", -1)
|
||||
assert(os.time(t) == -1)
|
||||
end
|
||||
|
||||
|
||||
checkDateTable(os.time())
|
||||
if not _port then
|
||||
-- assume that time_t can represent these values
|
||||
|
||||
Reference in New Issue
Block a user