Make busted actually fail failing coder tests
Previously it would ignore errors in the inner Lua test script and
report all tests as passing even if they had errors.
@@ -10,7 +10,8 @@ local function run_coder(titan_code, test_script)
local ok, errors = c_compiler.compile("test.titan", titan_code)
assert(ok, errors[1])
util.set_file_contents("test_script.lua", luabase .. test_script)
- os.execute("./lua/src/lua test_script.lua")
+ local ok = os.execute("./lua/src/lua test_script.lua")
+ assert.truthy(ok)
end
describe("Titan coder", function()
