mirror of
https://github.com/rayaman/multi.git
synced 2026-09-05 07:27:35 -04:00
Fixed issues
This commit is contained in:
+13
-6
@@ -156,13 +156,20 @@ runTest = thread:newFunction(function()
|
||||
if not love then
|
||||
local ec = 0
|
||||
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
|
||||
capture = io.popen("lua tests/threadtests.lua p"):read("*a")
|
||||
if capture:lower():match("error") then
|
||||
ec = ec + 1
|
||||
os.exit(1)
|
||||
else
|
||||
io.write(capture)
|
||||
end
|
||||
multi.print("Testing lanes threading")
|
||||
capture = io.popen("lua tests/threadtests.lua l"):read("*a")
|
||||
if capture:lower():match("error") then
|
||||
ec = ec + 1
|
||||
os.exit(1)
|
||||
else
|
||||
io.write(capture)
|
||||
end
|
||||
os.exit(0)
|
||||
end
|
||||
|
||||
@@ -210,7 +210,7 @@ multi:newThread("Scheduler Thread",function()
|
||||
end)
|
||||
|
||||
multi.OnExit(function(err_or_errorcode)
|
||||
multi.print("Error Code: ", err_or_errorcode)
|
||||
multi.print("EC: ", err_or_errorcode)
|
||||
if not we_good then
|
||||
multi.print("There was an error running some tests!")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user