Working on 16.0.0 #53
1
init.lua
1
init.lua
@ -2431,6 +2431,7 @@ multi.SetName = multi.setName
|
|||||||
local _os = os.exit
|
local _os = os.exit
|
||||||
|
|
||||||
function os.exit(n)
|
function os.exit(n)
|
||||||
|
print("ERROR_"..n)
|
||||||
multi.OnExit:Fire(n or 0)
|
multi.OnExit:Fire(n or 0)
|
||||||
_os(n)
|
_os(n)
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
local multi, thread = require("multi"):init{error=true}
|
local multi, thread = require("multi"):init{error=true}
|
||||||
multi.error("Currntly not supported!")
|
multi.error("Currntly not supported!")
|
||||||
os.exit()
|
os.exit(1)
|
||||||
local effil = require("effil")
|
local effil = require("effil")
|
||||||
|
|
||||||
-- I like some of the things that this library offers.
|
-- I like some of the things that this library offers.
|
||||||
|
|||||||
@ -52,7 +52,7 @@ multi:newThread("Scheduler Thread",function()
|
|||||||
queue:push("done")
|
queue:push("done")
|
||||||
end,"Passing some args", 1, 2, 3, true, {"Table"}).OnError(function(self,err)
|
end,"Passing some args", 1, 2, 3, true, {"Table"}).OnError(function(self,err)
|
||||||
multi.error(err)
|
multi.error(err)
|
||||||
os.exit()
|
os.exit(1)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
if thread.hold(function()
|
if thread.hold(function()
|
||||||
@ -101,7 +101,7 @@ multi:newThread("Scheduler Thread",function()
|
|||||||
|
|
||||||
if val == multi.TIMEOUT then
|
if val == multi.TIMEOUT then
|
||||||
multi.error("SystemThreadedTables: Failed")
|
multi.error("SystemThreadedTables: Failed")
|
||||||
os.exit()
|
os.exit(1)
|
||||||
end
|
end
|
||||||
|
|
||||||
multi.success("SystemThreadedTables: Ok")
|
multi.success("SystemThreadedTables: Ok")
|
||||||
@ -126,7 +126,7 @@ multi:newThread("Scheduler Thread",function()
|
|||||||
|
|
||||||
if val == multi.TIMEOUT then
|
if val == multi.TIMEOUT then
|
||||||
multi.error("SystemThreadedJobQueues: Failed")
|
multi.error("SystemThreadedJobQueues: Failed")
|
||||||
os.exit()
|
os.exit(1)
|
||||||
end
|
end
|
||||||
|
|
||||||
multi.success("SystemThreadedJobQueues: Ok")
|
multi.success("SystemThreadedJobQueues: Ok")
|
||||||
@ -173,13 +173,14 @@ multi:newThread("Scheduler Thread",function()
|
|||||||
multi.success("SystemThreadedConnections: Ok")
|
multi.success("SystemThreadedConnections: Ok")
|
||||||
|
|
||||||
we_good = true
|
we_good = true
|
||||||
os.exit()
|
os.exit(1)
|
||||||
end).OnError(multi.error)
|
end).OnError(multi.error)
|
||||||
|
|
||||||
multi.OnExit(function(err)
|
multi.OnExit(function(err_or_errorcode)
|
||||||
|
print("Final status!",err_or_errorcode)
|
||||||
if not we_good then
|
if not we_good then
|
||||||
multi.error("There was an error running some tests!")
|
multi.info("There was an error running some tests!")
|
||||||
os.exit(1)
|
return
|
||||||
else
|
else
|
||||||
multi.success("Tests complete!")
|
multi.success("Tests complete!")
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user