forked from pool/lua54
This commit is contained in:
parent
391f08d99e
commit
d164f587b3
@ -11,7 +11,7 @@ Index: lua/files.lua
|
|||||||
end
|
end
|
||||||
|
|
||||||
assert(io.output():seek() == 0)
|
assert(io.output():seek() == 0)
|
||||||
@@ -729,7 +729,7 @@ if not _port then
|
@@ -744,7 +744,7 @@ if not _port then
|
||||||
{"exit 129", "exit", 129},
|
{"exit 129", "exit", 129},
|
||||||
{"kill -s HUP $$", "signal", 1},
|
{"kill -s HUP $$", "signal", 1},
|
||||||
{"kill -s KILL $$", "signal", 9},
|
{"kill -s KILL $$", "signal", 9},
|
||||||
@ -20,7 +20,7 @@ Index: lua/files.lua
|
|||||||
{progname .. ' -e " "', "ok"},
|
{progname .. ' -e " "', "ok"},
|
||||||
{progname .. ' -e "os.exit(0, true)"', "ok"},
|
{progname .. ' -e "os.exit(0, true)"', "ok"},
|
||||||
{progname .. ' -e "os.exit(20, true)"', "exit", 20},
|
{progname .. ' -e "os.exit(20, true)"', "exit", 20},
|
||||||
@@ -742,6 +742,9 @@ if not _port then
|
@@ -757,6 +757,9 @@ if not _port then
|
||||||
if v[2] == "ok" then
|
if v[2] == "ok" then
|
||||||
assert(x and y == 'exit' and z == 0)
|
assert(x and y == 'exit' and z == 0)
|
||||||
else
|
else
|
||||||
@ -30,7 +30,7 @@ Index: lua/files.lua
|
|||||||
assert(not x and y == v[2]) -- correct status and 'what'
|
assert(not x and y == v[2]) -- correct status and 'what'
|
||||||
-- correct code if known (but always different from 0)
|
-- correct code if known (but always different from 0)
|
||||||
assert((v[3] == nil and z > 0) or v[3] == z)
|
assert((v[3] == nil and z > 0) or v[3] == z)
|
||||||
@@ -776,6 +779,7 @@ assert(os.date(string.rep("%d", 1000), t
|
@@ -794,6 +794,7 @@ assert(os.date(string.rep("%d", 1000), t
|
||||||
assert(os.date(string.rep("%", 200)) == string.rep("%", 100))
|
assert(os.date(string.rep("%", 200)) == string.rep("%", 100))
|
||||||
|
|
||||||
local function checkDateTable (t)
|
local function checkDateTable (t)
|
||||||
@ -38,7 +38,7 @@ Index: lua/files.lua
|
|||||||
_G.D = os.date("*t", t)
|
_G.D = os.date("*t", t)
|
||||||
assert(os.time(D) == t)
|
assert(os.time(D) == t)
|
||||||
load(os.date([[assert(D.year==%Y and D.month==%m and D.day==%d and
|
load(os.date([[assert(D.year==%Y and D.month==%m and D.day==%d and
|
||||||
@@ -791,7 +795,9 @@ if not _port then
|
@@ -810,7 +810,9 @@ if not _port then
|
||||||
checkDateTable(1)
|
checkDateTable(1)
|
||||||
checkDateTable(1000)
|
checkDateTable(1000)
|
||||||
checkDateTable(0x7fffffff)
|
checkDateTable(0x7fffffff)
|
||||||
|
Loading…
Reference in New Issue
Block a user