Throw an error when things break

This commit is contained in:
2023-07-04 13:25:18 -04:00
parent 8c987b81ab
commit 96cc41effb
3 changed files with 2 additions and 7 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ end
The expected and actual should "match" (Might be impossible when playing with threads)
This will be pushed directly to the master as tests start existing.
]]
local multi, thread = require("multi"):init{print=true,warn=true,error=false}--{priority=true}
local multi, thread = require("multi"):init{print=true,warn=true,error=true}--{priority=true}
local good = false
local proc = multi:newProcessor("Test")
+1 -1
View File
@@ -1,5 +1,5 @@
package.path = "../?/init.lua;../?.lua;"..package.path
multi, thread = require("multi"):init{}--{priority=true}
multi, thread = require("multi"):init{error=true,warning=true,print=true}--{priority=true}
proc = multi:newProcessor("Thread Test",true)
local LANES, LOVE, PSEUDO = 1, 2, 3
local env, we_good