Fixed error code issue
This commit is contained in:
parent
5f5723e936
commit
98198a4af2
@ -5,12 +5,15 @@ multi.defaultSettings.debugging = true
|
||||
local dbg = {}
|
||||
|
||||
local creation_hook
|
||||
local types
|
||||
|
||||
creation_hook = function(obj, process)
|
||||
local types = multi:getTypes()
|
||||
print("Created: ",obj.Type, "in", process.Type, process:getFullName())
|
||||
if obj.Type == multi.PROCESS then
|
||||
obj.OnObjectCreated(creation_hook)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
local debug_stats = {}
|
||||
@ -19,6 +22,8 @@ local tmulti = multi:getThreadManagerProcess()
|
||||
multi.OnObjectCreated(creation_hook)
|
||||
tmulti.OnObjectCreated(creation_hook)
|
||||
|
||||
multi
|
||||
|
||||
--[[
|
||||
multi.ROOTPROCESS = "rootprocess"
|
||||
multi.CONNECTOR = "connector"
|
||||
|
||||
@ -175,6 +175,17 @@ runTest = thread:newFunction(function()
|
||||
end
|
||||
if not love then
|
||||
local ec = 0
|
||||
if _VERSION > "5.1" then
|
||||
multi.print("Testing pseudo threading")
|
||||
_, str, ecc = os.execute("lua tests/threadtests.lua p")
|
||||
ec = ec + ecc
|
||||
multi.print("Testing lanes threading")
|
||||
_, str, ecc = os.execute("lua tests/threadtests.lua l")
|
||||
ec = ec + ecc
|
||||
if ec ~= 0 then
|
||||
os.exit(1)
|
||||
end
|
||||
else
|
||||
multi.print("Testing pseudo threading")
|
||||
ec = ec + os.execute("lua tests/threadtests.lua p")
|
||||
multi.print("Testing lanes threading")
|
||||
@ -183,6 +194,7 @@ runTest = thread:newFunction(function()
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
local handle = runTest()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user